]> source.dussan.org Git - redmine.git/commitdiff
rubocop: revert r18852
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 26 Oct 2019 12:53:48 +0000 (12:53 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 26 Oct 2019 12:53:48 +0000 (12:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18867 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop.yml
.rubocop_todo.yml

index 9c1be3f87ae0bb149f1a5c901a6a1b30cc87ffcd..358474c9613762937a2e82cbd0a050d1eaa4d9ca 100644 (file)
@@ -33,9 +33,11 @@ Layout/AlignArguments:
 Layout/EmptyLineBetweenDefs:
   AllowAdjacentOneLineDefs: true
 
-# You can see results by "rubocop --only Layout/SpaceBeforeBlockBraces"
 Layout/SpaceBeforeBlockBraces:
-  EnforcedStyle: space
+  # "space" is used more than "no_space".
+  # But "no_space" is more natural in one liner.
+  #   str = path.to_s.split(%r{[/\\]}).select{|p| !p.blank?}.join("/")
+  Enabled: false
 
 # You can see results by "rubocop --only Layout/SpaceInsideBlockBraces"
 Layout/SpaceInsideBlockBraces:
index 68241975bdcc4534aaee5779e38a97db5b73a0f5..22050628952e61443a045ddf2338a17da11c7792 100644 (file)
@@ -266,13 +266,6 @@ 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: