Skip to content

Commit 63147bb

Browse files
committed
Disable Layout cops for defaults
The defaults file for Puppet is lengthy and has distinctive formatting, this commit outright disables all Rubocop Layout cops for the file.
1 parent b775813 commit 63147bb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.rubocop.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ AllCops:
1717
- 'lib/puppet/vendor/**/*'
1818
- 'lib/puppet/pops/parser/eparser.rb'
1919

20-
# This cop would completely reformat defaults, so we skip it for now.
21-
Layout/ArgumentAlignment:
20+
# The formatting of defaults is unusual, so let's skip layout cops.
21+
Layout:
2222
Exclude:
2323
- 'lib/puppet/defaults.rb'
2424

@@ -33,11 +33,6 @@ Layout/ElseAlignment:
3333
Exclude:
3434
- 'lib/puppet/provider/package/*.rb'
3535

36-
# Formatting in defaults is unusual
37-
Layout/FirstArgumentIndentation:
38-
Exclude:
39-
- 'lib/puppet/defaults.rb'
40-
4136
# puppet uses symbol booleans in types and providers to work around long standing
4237
# bugs when trying to manage falsey pararameters and properties
4338
Lint/BooleanSymbol:

0 commit comments

Comments
 (0)