diff --git a/config_defaults.yml b/config_defaults.yml index d95aa853..c5a34a99 100644 --- a/config_defaults.yml +++ b/config_defaults.yml @@ -46,6 +46,7 @@ Gemfile: - gem: puppet-lint-unquoted_string-check - gem: puppet-lint-variable_contains_upcase - gem: puppet-lint-absolute_classname-check + version: '>= 2.0.0' - gem: puppet-lint-topscope-variable-check - gem: puppet-lint-legacy_facts-check - gem: puppet-lint-anchor-check @@ -92,8 +93,6 @@ Gemfile: version: '>= 2.2' Rakefile: config.user: voxpupuli - exclude_paths: [] - puppet_lint_checks: [] puppet_strings_patterns: [] spec/default_facts.yml: delete: true diff --git a/moduleroot/Rakefile.erb b/moduleroot/Rakefile.erb index 0f29a05f..d2384488 100644 --- a/moduleroot/Rakefile.erb +++ b/moduleroot/Rakefile.erb @@ -8,22 +8,6 @@ rescue LoadError end PuppetLint.configuration.log_format = '%{path}:%{line}:%{check}:%{KIND}:%{message}' -PuppetLint.configuration.absolute_classname_reverse = true -<% @configs['puppet_lint_checks'].each do |check| -%> -PuppetLint.configuration.send('<%= check %>') -<% end -%> - -exclude_paths = %w( - pkg/**/* - vendor/**/* - .vendor/**/* - spec/**/* -<%- @configs['exclude_paths'].each do |path|-%> - <%= path %> -<%- end -%> -) -PuppetLint.configuration.ignore_paths = exclude_paths -PuppetSyntax.exclude_paths = exclude_paths desc 'Auto-correct puppet-lint offenses' task 'lint:auto_correct' do