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

.rubocop.yml
.rubocop_todo.yml

index 9855bdecedc749d93501398f2446b49908ea402d..b7ce1f8dca424ef9b9ee432813385aa8e2e12d9c 100644 (file)
@@ -33,8 +33,9 @@ Layout/AlignArguments:
 Layout/EmptyLineBetweenDefs:
   AllowAdjacentOneLineDefs: true
 
+# You can see results by "rubocop --only Layout/SpaceBeforeBlockBraces"
 Layout/SpaceBeforeBlockBraces:
-  Enabled: false
+  EnforcedStyle: space
 
 # You can see results by "rubocop --only Layout/SpaceInsideBlockBraces"
 Layout/SpaceInsideBlockBraces:
index 0d769fdfa6337e9dda3733809d723ee7bb5e80c6..a29945e3b0eea85d4fa9001fa525a30c0ebd4ba2 100644 (file)
@@ -230,6 +230,13 @@ Layout/SpaceAroundEqualsInParameterDefault:
 Layout/SpaceAroundOperators:
   Enabled: false
 
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle.
+# SupportedStyles: space, no_space
+# SupportedStylesForEmptyBraces: space, no_space
+Layout/SpaceBeforeBlockBraces:
+  EnforcedStyleForEmptyBraces: no_space
+
 # Cop supports --auto-correct.
 Layout/SpaceBeforeComma:
   Exclude: