Skip to content

Commit

Permalink
rubocop: fix trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Mar 20, 2023
1 parent bd72b3d commit 35cca4e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions lib/puppet-syntax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35cca4e

Please sign in to comment.