Created
September 1, 2020 15:17
-
-
Save kjetilho/02f8472f606965ceadda5cd708149a82 to your computer and use it in GitHub Desktop.
this is how we configure puppet-lint in our Rakefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Common configuration | |
exclude_paths = [ | |
'pkg/**/*', | |
'vendor/**/*', | |
'spec/fixtures/modules/**/*', | |
'modules/**/*', | |
] | |
# Configuration for 'rake lint'. See documentation at | |
# https://github.com/rodjek/puppet-lint | |
PuppetLint::RakeTask.new :lint do |config| | |
config.disable_checks = ['2sp_soft_tabs', '80chars', 'arrow_alignment', 'documentation', | |
'selector_inside_resource'] | |
config.fail_on_warnings = false | |
config.ignore_paths = exclude_paths | |
config.log_format = '%{path}:%{line}:%{column}:%{check}:%{KIND}:%{message}' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment