gl_lint 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gl_lint/file_selector.rb +2 -0
- 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: d00b919c2100afc2ed238f0af9422723a7404399e167f48eeeb8c109aa3b2537
|
4
|
+
data.tar.gz: fc0eee0a041e7ae29af904986d9752d3d6a575ce17f41ab6806b0011932c46d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aabbfc425e9b4b2d91089648d117b55447cb08262416f067d6b1180a8e1effa170fc6fa408f11860cfee04b9bfbb303fb1b6b4675d5e822bb10332ef3ce722d
|
7
|
+
data.tar.gz: 3481a31d8fec1afa9214abe51566f0bb0485ef7cab4c3127ddba6ad1723105e4d30297efa56755c39afeb7f01ba3b94085f949126a8107c8dc93eb9464b4f951
|
@@ -2,6 +2,7 @@ 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
|
5
6
|
|
6
7
|
class << self
|
7
8
|
def files(filenames: nil, target_files: nil)
|
@@ -10,6 +11,7 @@ module GlLint
|
|
10
11
|
if selected_files
|
11
12
|
rubocop_files = selected_files.grep(/\.(rb|rake|gemspec)\z/)
|
12
13
|
rubocop_files += selected_files & NON_RB_RUBY_FILES
|
14
|
+
rubocop_files -= IGNORED_FILES
|
13
15
|
|
14
16
|
prettier_files = selected_files.grep(/\.(js|jsx|json|css|md)\z/)
|
15
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.2
|
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-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: optparse
|