Skip to content

Commit 99b6810

Browse files
committed
Layout/BeginEndAlignment
This commit enables the Rubocop Layout/BeginEndAlignment cop.
1 parent 9b6c049 commit 99b6810

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.rubocop.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ Layout/ArgumentAlignment:
2222
Exclude:
2323
- 'lib/puppet/defaults.rb'
2424

25+
# The confine statements in package providers unexpectedly affect this cop.
26+
Layout/BeginEndAlignment:
27+
Enabled: true
28+
Exclude:
29+
- 'lib/puppet/provider/package/*.rb'
30+
2531
# puppet uses symbol booleans in types and providers to work around long standing
2632
# bugs when trying to manage falsey pararameters and properties
2733
Lint/BooleanSymbol:

.rubocop_todo.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,6 @@ Layout/AssignmentIndentation:
6969
- 'lib/puppet/util.rb'
7070
- 'lib/puppet/util/windows/daemon.rb'
7171

72-
# This cop supports safe auto-correction (--auto-correct).
73-
# Configuration parameters: EnforcedStyleAlignWith, Severity.
74-
# SupportedStylesAlignWith: start_of_line, begin
75-
Layout/BeginEndAlignment:
76-
Exclude:
77-
- 'lib/puppet/provider/package/apt.rb'
78-
- 'lib/puppet/provider/package/aptrpm.rb'
79-
- 'lib/puppet/provider/package/dnf.rb'
80-
- 'lib/puppet/provider/package/rpm.rb'
81-
- 'lib/puppet/provider/package/tdnf.rb'
82-
- 'lib/puppet/provider/package/yum.rb'
83-
8472
# This cop supports safe auto-correction (--auto-correct).
8573
# Configuration parameters: EnforcedStyleAlignWith.
8674
# SupportedStylesAlignWith: either, start_of_block, start_of_line

0 commit comments

Comments
 (0)