Skip to content

Commit

Permalink
Merge pull request #515 from umnmsi/puppet-lint-fail-on-warnings
Browse files Browse the repository at this point in the history
Allow puppet-lint fail_on_warnings to be disabled
  • Loading branch information
jordanbreen28 authored Nov 1, 2023
2 parents 1cc0d22 + 7baa15c commit 9b6a709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moduleroot/Rakefile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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? -%>
PuppetLint.configuration.fail_on_warnings = <%= @configs['linter_fail_on_warnings'] %>
<% end -%>
<% linter_options = @configs['linter_options'] || [] -%>
<% linter_options.each do |option| -%>
Expand Down

0 comments on commit 9b6a709

Please sign in to comment.