Skip to content

Commit 07a6247

Browse files
committed
improve recognition ruby support files; rubocop --plugin version
1 parent 1b10c79 commit 07a6247

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### 2.3.2 (Next)
22
- Fix `rubocop-performance` inclusion warning.
3+
- Improve recognition of Ruby support files.
34

45
### 2.3.1
56
- No input target paths now defaults to current working directory instead of error.

lib/puppet_check.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def execute_parsers(files, style, puppetlint_args, rubocop_args, public, private
141141
eyamls, files = files.partition { |file| File.extname(file) =~ /\.eya?ml$/ }
142142
DataParser.eyaml(eyamls, public, private) unless eyamls.empty?
143143
# check misc ruby
144-
librarians, files = files.partition { |file| File.basename(file) =~ /(?:Puppet|Module|Rake|Gem|Vagrant)file|.gemspec$/ }
144+
librarians, files = files.partition { |file| File.basename(file) =~ /^(?:Puppet|Module|Rake|Gem|Vagrant)file|\.gemspec$/ && File.extname(file) != '.lock' }
145145
RubyParser.librarian(librarians, style, rubocop_args) unless librarians.empty?
146146
# ignore everything else
147147
files.each { |file| self.class.files[:ignored].push(file.to_s) }

puppet-check.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
1515
spec.add_dependency 'puppet', '>= 5.5', '< 9'
1616
spec.add_dependency 'puppet-lint', '~> 4.0'
1717
spec.add_dependency 'reek', '~> 6.0'
18-
spec.add_dependency 'rubocop', '~> 1.0'
18+
spec.add_dependency 'rubocop', '~> 1.72'
1919
spec.add_dependency 'rubocop-performance', '~> 1.0'
2020
# spec.add_development_dependency 'octocatalog-diff', '~> 2.0'
2121
spec.add_development_dependency 'rake', '~> 13.0'

0 commit comments

Comments
 (0)