gl_lint 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gl_lint/file_selector.rb +2 -2
- data/lib/gl_lint/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d897ef0ace348163faa4a5b6cffae1827e8e035ab7c8d665b4626882d4cbffe
|
4
|
+
data.tar.gz: c3a1bb840c05986ed712ebaf545868c049287da3c4bdc2edfddb1969d9cb1640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 919b38ccddaedb8db302f708f0f273997ed869dbee1411ea201eb228b886993033f3d6c95217a7753ee1692c9c724e9f11a184d43bbdf5d49aab94edb5b2b588
|
7
|
+
data.tar.gz: 6a8b0c6dc917969f2698ae4dca6c252a3f935bdcf1cd45634fc2d61ec8123561d4f055363deebd9bc7c5e0007db4cf97c76feb1215f76439c7a9904b37f1f04f
|
@@ -2,7 +2,6 @@ module GlLint
|
|
2
2
|
class FileSelector
|
3
3
|
NON_RB_RUBY_FILES = %w[Gemfile Rakefile config.ru
|
4
4
|
bin/bundle bin/lint bin/rubocop bin/setup bin/update].freeze
|
5
|
-
IGNORED_FILES = %w[db/schema.rb].freeze
|
6
5
|
|
7
6
|
class << self
|
8
7
|
def files(filenames: nil, target_files: nil)
|
@@ -11,7 +10,8 @@ module GlLint
|
|
11
10
|
if selected_files
|
12
11
|
rubocop_files = selected_files.grep(/\.(rb|rake|gemspec)\z/)
|
13
12
|
rubocop_files += selected_files & NON_RB_RUBY_FILES
|
14
|
-
|
13
|
+
# Make certain that schemas are ignored
|
14
|
+
rubocop_files.reject! { |f| f.match?(%r{db/.*schema.rb}) }
|
15
15
|
|
16
16
|
prettier_files = selected_files.grep(/\.(js|jsx|json|css|md)\z/)
|
17
17
|
end
|
data/lib/gl_lint/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gl_lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Give Lively
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: optparse
|