Skip to content

Commit b314c92

Browse files
committed
additionally check Vagrantfile and gemspec files
1 parent 3687042 commit b314c92

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
command: apt-get update && apt-get install -y cmake pkg-config
2121
- run:
2222
name: bundler install
23-
command: bundle install --retry=3 && bundle binstubs puppet
23+
command: bundle install --retry=3
2424
- save_cache:
2525
paths:
2626
- ~/.bundle

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### 2.3.1 (Next)
22
- No input target paths now defaults to current working directory instead of error.
3+
- Additionally check `Vagrantfile` and `gemspec` files.
34

45
### 2.3.0
56
- Minimum Ruby version increased to 2.7.

lib/puppet_check.rb

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

spec/puppet-check/cli_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
context '.run' do
66
it 'targets the current working directory if no paths were specified' do
77
expect { PuppetCheck::CLI.run(%w[--fail-on-warnings]) }.not_to raise_exception
8-
expect(PuppetCheck.files[:clean].length).to eql(28)
9-
expect(PuppetCheck.files[:ignored].length).to eql(10)
8+
expect(PuppetCheck.files[:clean].length).to eql(30)
9+
expect(PuppetCheck.files[:ignored].length).to eql(7)
1010
end
1111
end
1212

0 commit comments

Comments
 (0)