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

Allow puppet-lint fail_on_warnings to be disabled #515

Merged
merged 1 commit into from
Nov 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Allow puppet-lint fail_on_warnings to be disabled
nabertrand committed May 11, 2023
commit 7baa15c93c4b90300e4a61c0575e961db39a6dce
4 changes: 2 additions & 2 deletions moduleroot/Rakefile.erb
Original file line number Diff line number Diff line change
@@ -66,8 +66,8 @@ end
<% checks.each do |check| -%>
PuppetLint.configuration.send('disable_<%= check %>')
<% end -%>
<% if @configs['linter_fail_on_warnings'] -%>
PuppetLint.configuration.fail_on_warnings = true
<% if ! @configs['linter_fail_on_warnings'].nil? -%>
jordanbreen28 marked this conversation as resolved.
Show resolved Hide resolved
PuppetLint.configuration.fail_on_warnings = <%= @configs['linter_fail_on_warnings'] %>
jordanbreen28 marked this conversation as resolved.
Show resolved Hide resolved
<% end -%>
<% linter_options = @configs['linter_options'] || [] -%>
<% linter_options.each do |option| -%>