Skip to content

Commit

Permalink
Merge pull request #140 from bastelfreak/rubocop
Browse files Browse the repository at this point in the history
rubocop: fix trailing comma
  • Loading branch information
bastelfreak committed Mar 20, 2023
2 parents bd72b3d + 35cca4e commit 3897842
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 3897842

Please sign in to comment.