Skip to content

Commit 70a762f

Browse files
authored
Merge pull request #231 from github/enable-layout-space-inside-hash-literal-braces
Enable `Layout/SpaceInsideHashLiteralBraces`
2 parents decc697 + 7ff8441 commit 70a762f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

config/default.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ Layout/SpaceInsideBlockBraces:
331331
Enabled: true
332332

333333
Layout/SpaceInsideHashLiteralBraces:
334-
Enabled: false
334+
Enabled: true
335+
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
335336

336337
Layout/SpaceInsideParens:
337338
Enabled: true

test/test_insecure_hash_algorithm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def cop_class
1010
end
1111

1212
def make_cop(allowed:)
13-
config = RuboCop::Config.new({"GitHub/InsecureHashAlgorithm" => {"Allowed" => allowed}})
13+
config = RuboCop::Config.new({ "GitHub/InsecureHashAlgorithm" => { "Allowed" => allowed } })
1414
cop_class.new(config)
1515
end
1616

0 commit comments

Comments
 (0)