Skip to content

Commit

Permalink
Merge pull request #86 from domcleal/exclude-vendor
Browse files Browse the repository at this point in the history
Exclude vendor/ files
  • Loading branch information
tphoney committed Mar 11, 2015
2 parents 6e0f788 + 603a862 commit 507c09f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/puppetlabs_spec_helper/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,14 @@ def revision(scm, target, ref)
PuppetLint.configuration.ignore_paths ||= []
PuppetLint.configuration.ignore_paths << "spec/fixtures/**/*.pp"
PuppetLint.configuration.ignore_paths << "pkg/**/*.pp"
PuppetLint.configuration.ignore_paths << "vendor/**/*.pp"
end

require 'puppet-syntax/tasks/puppet-syntax'
PuppetSyntax.exclude_paths ||= []
PuppetSyntax.exclude_paths << "spec/fixtures/**/*.pp"
PuppetSyntax.exclude_paths << "spec/fixtures/**/*"
PuppetSyntax.exclude_paths << "pkg/**/*"
PuppetSyntax.exclude_paths << "vendor/**/*"
PuppetSyntax.future_parser = true if ENV['FUTURE_PARSER'] == 'yes'

desc "Check syntax of Ruby files and call :syntax and :metadata"
Expand Down

0 comments on commit 507c09f

Please sign in to comment.