Skip to content

Commit

Permalink
Enable Layout/SpaceInsideHashLiteralBraces
Browse files Browse the repository at this point in the history
- This is part of our styleguide and was enabled in `github/github` in 2022, so let's make it the default.
  • Loading branch information
issyl0 authored Jan 16, 2025
1 parent 5db0a50 commit 7ff8441
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ Layout/SpaceInsideBlockBraces:
Enabled: true

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

Layout/SpaceInsideParens:
Enabled: true
Expand Down
2 changes: 1 addition & 1 deletion test/test_insecure_hash_algorithm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def cop_class
end

def make_cop(allowed:)
config = RuboCop::Config.new({"GitHub/InsecureHashAlgorithm" => {"Allowed" => allowed}})
config = RuboCop::Config.new({ "GitHub/InsecureHashAlgorithm" => { "Allowed" => allowed } })
cop_class.new(config)
end

Expand Down

0 comments on commit 7ff8441

Please sign in to comment.