gl_lint 0.3.0 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe075647d55d0b39b011170299fe77b82c46fbca37be7e22187d9946ea76bff7
4
- data.tar.gz: 960a6494ad564bdd40044fa69219b1a8a5b514dcb9c1922f4440fbe7f7dc603e
3
+ metadata.gz: d00b919c2100afc2ed238f0af9422723a7404399e167f48eeeb8c109aa3b2537
4
+ data.tar.gz: fc0eee0a041e7ae29af904986d9752d3d6a575ce17f41ab6806b0011932c46d6
5
5
  SHA512:
6
- metadata.gz: a881651be9f699133abd4964b31f2ac3420df486ba81d9946a145c2c4189c00aef384539bf6bdb1ea8a353880ce124952e7851521f240746d18e39b53e824c9a
7
- data.tar.gz: f4f1a2874f0355664d0a1f9526cba3cc3eaa94c965a431f05c4ca0d97f4a142f391ed918f7758b5f5be05a95357ce442d5be7c7e376125d42db0d37a42e5a3a7
6
+ metadata.gz: 7aabbfc425e9b4b2d91089648d117b55447cb08262416f067d6b1180a8e1effa170fc6fa408f11860cfee04b9bfbb303fb1b6b4675d5e822bb10332ef3ce722d
7
+ data.tar.gz: 3481a31d8fec1afa9214abe51566f0bb0485ef7cab4c3127ddba6ad1723105e4d30297efa56755c39afeb7f01ba3b94085f949126a8107c8dc93eb9464b4f951
data/lib/gl_lint/cli.rb CHANGED
@@ -91,7 +91,7 @@ module GlLint
91
91
  app_root:,
92
92
  default_target: default_target || DEFAULT_TARGET,
93
93
  filenames: nil,
94
- linters: linters || LINTERS,
94
+ linters: Array(linters || LINTERS),
95
95
  list_only: false,
96
96
  no_fix: false,
97
97
  unsafe_fix: ENV['UNSAFE_LINT'] == 'true',
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GlLint
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.2'
5
5
  end
data/lib/gl_lint.rb CHANGED
@@ -5,8 +5,8 @@ require 'gl_lint/export_rubocop'
5
5
 
6
6
  module GlLint
7
7
  class << self
8
- def call_cli(app_root:, linters: nil)
9
- options = GlLint::CLI.parse(app_root:, linters:)
8
+ def call_cli(app_root:, default_target: nil, linters: nil)
9
+ options = GlLint::CLI.parse(app_root:, linters:, default_target:)
10
10
  puts 'Options: ', options, '' if options[:verbose]
11
11
 
12
12
  call(**options.except(:verbose, :default_target))
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.0
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-03-12 00:00:00.000000000 Z
11
+ date: 2024-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: optparse