]> source.dussan.org Git - redmine.git/commitdiff
rubocop: set Layout/SpaceInsideHashLiteralBraces parameters used more than others
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 23 Oct 2019 13:31:59 +0000 (13:31 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 23 Oct 2019 13:31:59 +0000 (13:31 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18857 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop.yml
.rubocop_todo.yml

index b7ce1f8dca424ef9b9ee432813385aa8e2e12d9c..9c1be3f87ae0bb149f1a5c901a6a1b30cc87ffcd 100644 (file)
@@ -42,8 +42,9 @@ Layout/SpaceInsideBlockBraces:
   EnforcedStyle: no_space
   SpaceBeforeBlockParameters: false
 
+# You can see results by "rubocop --only Layout/SpaceInsideHashLiteralBraces"
 Layout/SpaceInsideHashLiteralBraces:
-  Enabled: false
+  EnforcedStyle: no_space
 
 Layout/TrailingWhitespace:
   AllowInHeredoc: true
index a29945e3b0eea85d4fa9001fa525a30c0ebd4ba2..06bdb34882b02f31475b3e8687aef29e45f54e5c 100644 (file)
@@ -286,6 +286,13 @@ Layout/SpaceInsideArrayLiteralBrackets:
 Layout/SpaceInsideBlockBraces:
   Enabled: false
 
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
+# SupportedStyles: space, no_space, compact
+# SupportedStylesForEmptyBraces: space, no_space
+Layout/SpaceInsideHashLiteralBraces:
+  Enabled: false
+
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle.
 # SupportedStyles: space, no_space