Skip to content

Commit 4be9889

Browse files
committed
Layout/SpaceBeforeBrackets
This commit enables the Rubocop Layout/SpaceBeforeBrackets cop and addresses all offenses.
1 parent 5a1b67d commit 4be9889

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Layout/IndentationWidth:
3030
Layout/LineEndStringConcatenationIndentation:
3131
Enabled: true
3232

33+
# Explicitly enables this cop new in 1.7
34+
Layout/SpaceBeforeBrackets:
35+
Enabled: true
36+
3337
# puppet uses symbol booleans in types and providers to work around long standing
3438
# bugs when trying to manage falsey pararameters and properties
3539
Lint/BooleanSymbol:

lib/puppet/graph/simple_graph.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def remove_edge!(e)
342342
if edge?(e.source, e.target)
343343
@upstream_from.clear
344344
@downstream_from.clear
345-
@in_to [e.target].delete e.source if (@in_to [e.target][e.source] -= [e]).empty?
345+
@in_to[e.target].delete e.source if (@in_to[e.target][e.source] -= [e]).empty?
346346
@out_from[e.source].delete e.target if (@out_from[e.source][e.target] -= [e]).empty?
347347
end
348348
end

0 commit comments

Comments
 (0)