Skip to content

Commit 60aaf84

Browse files
committed
Lint
1 parent e8e76ed commit 60aaf84

6 files changed

Lines changed: 23 additions & 17 deletions

File tree

.standard.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore:
2+
- 'spec/dummy/**/*'

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ gem "rake", "~> 13.0"
1010
gem "rspec", "~> 3.0"
1111
gem "simplecov", require: false
1212
gem "sqlite3"
13-
gem "standard"
13+
gem "standard", github: "testdouble/standard"

Gemfile.lock

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
GIT
2+
remote: https://github.com/testdouble/standard.git
3+
revision: 2a0584ed57122065d0972fe5a55eb83aec150b54
4+
specs:
5+
standard (1.50.0)
6+
language_server-protocol (~> 3.17.0.2)
7+
lint_roller (~> 1.0)
8+
rubocop (~> 1.75.5)
9+
standard-custom (~> 1.0.0)
10+
standard-performance (~> 1.8)
11+
112
PATH
213
remote: .
314
specs:
@@ -228,12 +239,6 @@ GEM
228239
simplecov_json_formatter (0.1.4)
229240
sqlite3 (2.7.3-x86_64-darwin)
230241
sqlite3 (2.7.3-x86_64-linux-gnu)
231-
standard (1.50.0)
232-
language_server-protocol (~> 3.17.0.2)
233-
lint_roller (~> 1.0)
234-
rubocop (~> 1.75.5)
235-
standard-custom (~> 1.0.0)
236-
standard-performance (~> 1.8)
237242
standard-custom (1.0.2)
238243
lint_roller (~> 1.0)
239244
rubocop (~> 1.50)
@@ -266,7 +271,7 @@ DEPENDENCIES
266271
rspec (~> 3.0)
267272
simplecov
268273
sqlite3
269-
standard
274+
standard!
270275

271276
BUNDLED WITH
272277
2.7.0

lib/data_customs/migration.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class Migration
88
def self.run(...) = new(...).run
99

1010
def up = raise NotImplementedError
11-
1211
def verify! = raise NotImplementedError
1312

1413
def run

lib/data_customs/tasks/data_customs.rake

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
namespace :data_customs do
2-
desc 'Run a single data migration from db/data_migrations'
2+
desc "Run a single data migration from db/data_migrations"
33
task run: :environment do
4-
name = ENV['NAME']
5-
abort '❌ Missing migration name (e.g. `rake data_customs:run NAME=fix_users`)' unless name
4+
name = ENV["NAME"]
5+
abort "❌ Missing migration name (e.g. `rake data_customs:run NAME=fix_users`)" unless name
66

7-
path = Rails.root.join('db', 'data_migrations', "#{name.underscore}.rb")
7+
path = Rails.root.join("db", "data_migrations", "#{name.underscore}.rb")
88
abort "❌ Migration not found: #{path}" unless File.exist?(path)
99

1010
require path
1111
migration_class = name.camelize.constantize
12-
if args = ENV['ARGS']
13-
migration_class.run(args.split(','))
12+
if (args = ENV["ARGS"])
13+
migration_class.run(args.split(","))
1414
else
1515
migration_class.run
1616
end

spec/support/database_connection.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
require "active_record"
22

33
ActiveRecord::Base.establish_connection(
4-
adapter: 'sqlite3',
5-
database: ':memory:'
4+
adapter: "sqlite3",
5+
database: ":memory:"
66
)
77

88
ActiveRecord::Schema.define do

0 commit comments

Comments
 (0)