Skip to content

Instantly share code, notes, and snippets.

@kjetilho
Created September 1, 2020 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjetilho/02f8472f606965ceadda5cd708149a82 to your computer and use it in GitHub Desktop.
Save kjetilho/02f8472f606965ceadda5cd708149a82 to your computer and use it in GitHub Desktop.
this is how we configure puppet-lint in our Rakefile
# 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