Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update puppet-lint and puppet-syntax default ignore paths #165

Merged
merged 1 commit into from
Aug 23, 2016

Conversation

DavidS
Copy link
Contributor

@DavidS DavidS commented Aug 23, 2016

These changes are to align the defaults more with what's currently in use
in the field, and improve puppet4 compatibility.

These changes are to align the defaults more with what's currently in use
in the field, and improve puppet4 compatibility.
end

require 'puppet-syntax/tasks/puppet-syntax'
PuppetSyntax.exclude_paths ||= []
PuppetSyntax.exclude_paths << "spec/fixtures/**/*"
PuppetSyntax.exclude_paths << "pkg/**/*"
PuppetSyntax.exclude_paths << "vendor/**/*"
if Puppet.version.to_f < 4.0
PuppetSyntax.exclude_paths << "types/**/*"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stupid question, why is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with puppet<4 puppet syntax will choke on type declarations.

@bastelfreak
Copy link
Collaborator

LGTM!

@DavidS DavidS merged commit 0d81bc3 into puppetlabs:master Aug 23, 2016
@DavidS DavidS deleted the update-default-ignore-paths branch August 23, 2016 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants