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

.rubocop.yml
.rubocop_todo.yml

index 8a92acfd3526cdffd4b23076b39cd0da6ea3b25b..9855bdecedc749d93501398f2446b49908ea402d 100644 (file)
@@ -36,8 +36,10 @@ Layout/EmptyLineBetweenDefs:
 Layout/SpaceBeforeBlockBraces:
   Enabled: false
 
+# You can see results by "rubocop --only Layout/SpaceInsideBlockBraces"
 Layout/SpaceInsideBlockBraces:
-  Enabled: false
+  EnforcedStyle: no_space
+  SpaceBeforeBlockParameters: false
 
 Layout/SpaceInsideHashLiteralBraces:
   Enabled: false
index 8517c19cec384dc2f6937b923a9610ccfee0c1fc..0d769fdfa6337e9dda3733809d723ee7bb5e80c6 100644 (file)
@@ -272,6 +272,13 @@ Layout/SpaceInsideArrayLiteralBrackets:
     - 'test/unit/mailer_test.rb'
     - 'test/unit/search_test.rb'
 
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
+# SupportedStyles: space, no_space
+# SupportedStylesForEmptyBraces: space, no_space
+Layout/SpaceInsideBlockBraces:
+  Enabled: false
+
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle.
 # SupportedStyles: space, no_space