From 7ff8441911ca0d783858e097eac441b35fce9b3b Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 16 Jan 2025 15:27:44 +0000 Subject: [PATCH] Enable `Layout/SpaceInsideHashLiteralBraces` - This is part of our styleguide and was enabled in `github/github` in 2022, so let's make it the default. --- config/default.yml | 3 ++- test/test_insecure_hash_algorithm.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/default.yml b/config/default.yml index ee641dfd..52d44625 100644 --- a/config/default.yml +++ b/config/default.yml @@ -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 diff --git a/test/test_insecure_hash_algorithm.rb b/test/test_insecure_hash_algorithm.rb index 6e0277f3..317562e1 100644 --- a/test/test_insecure_hash_algorithm.rb +++ b/test/test_insecure_hash_algorithm.rb @@ -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