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

Configure puppet-lint to fail on warnings again #347

Merged
merged 1 commit into from
Jan 11, 2022

Conversation

ekohl
Copy link
Contributor

@ekohl ekohl commented Nov 17, 2021

In a4bed8a the checks were restructured to be reconfigurable but the fail_on_warnings setting was lost. This means the rake task isn't failing even if there are warnings.

Fixes: a4bed8a

In a4bed8a the checks were restructured
to be reconfigurable but the fail_on_warnings setting was lost. This
means the rake task isn't failing even if there are warnings.

Fixes: a4bed8a
@@ -171,6 +171,7 @@
# Must clear as it will not override the existing puppet-lint rake task since we require to import for
# the PuppetLint::RakeTask
Rake::Task[:lint].clear
PuppetLint.configuration.fail_on_warnings = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor

@michaeltlombardi michaeltlombardi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for catching this.

@michaeltlombardi michaeltlombardi merged commit 7aae63b into puppetlabs:main Jan 11, 2022
@ekohl ekohl deleted the make-lint-fatal-again branch January 11, 2022 17:02
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.

4 participants