diff --git a/.rubocop.yml b/.rubocop.yml index bfc47d3..8a8e2bb 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -12,6 +12,18 @@ AllCops: Exclude: - vendor/**/* +Style/TrailingCommaInHashLiteral: + Enabled: True + EnforcedStyleForMultiline: consistent_comma + +Style/TrailingCommaInArrayLiteral: + Enabled: True + EnforcedStyleForMultiline: consistent_comma + +Style/TrailingCommaInArguments: + Enabled: True + EnforcedStyleForMultiline: comma + Metrics: Enabled: false diff --git a/lib/puppet-syntax.rb b/lib/puppet-syntax.rb index 03a0540..9e70ba4 100644 --- a/lib/puppet-syntax.rb +++ b/lib/puppet-syntax.rb @@ -9,14 +9,14 @@ module PuppetSyntax @hieradata_paths = [ "**/data/**/*.*{yaml,yml}", "hieradata/**/*.*{yaml,yml}", - "hiera*.*{yaml,yml}" + "hiera*.*{yaml,yml}", ] @manifests_paths = [ - '**/*.pp' + '**/*.pp', ] @templates_paths = [ '**/templates/**/*.erb', - '**/templates/**/*.epp' + '**/templates/**/*.epp', ] @fail_on_deprecation_notices = true @check_hiera_keys = false