From d9e6478ff7730a8ce072ce0c1d36a9b79f05ba2c Mon Sep 17 00:00:00 2001 From: david22swan Date: Fri, 18 Oct 2024 10:46:59 +0100 Subject: [PATCH] (CAT-2010) Update lint configuration to match puppetlabs_spec_helper Update the configuration of lint with the templates to match that of the puppetlabs_spec_helper to ensure compliance between the PDK lint runs and the Rake lint runs --- config_defaults.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config_defaults.yml b/config_defaults.yml index 00e65828..1f470874 100644 --- a/config_defaults.yml +++ b/config_defaults.yml @@ -68,8 +68,23 @@ common: markup: markdown Rakefile: changelog_version_tag_pattern: 'v%s' + linter_fail_on_warnings: true default_disabled_lint_checks: - 'relative' + - '80chars' + - '140chars' + - 'class_inherits_from_params_class' + - 'autoloader_layout' + - 'documentation' + - 'single_quote_string_with_variables' + linter_exclusions: + - '.vendor/**/*.pp' + - 'bundle/**/*.pp' + - 'pkg/**/*.pp' + - 'spec/**/*.pp' + - 'tests/**/*.pp' + - 'types/**/*.pp' + - 'vendor/**/*.pp' extras: [] .rubocop.yml: selected_profile: strict