Skip to content

Commit 7ff8441

Browse files
authored
Enable Layout/SpaceInsideHashLiteralBraces
- This is part of our styleguide and was enabled in `github/github` in 2022, so let's make it the default.
1 parent 5db0a50 commit 7ff8441

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy