Browse Source

rubocop: set Layout/SpaceInsideBlockBraces parameters used more than others

git-svn-id: http://svn.redmine.org/redmine/trunk@18851 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA 4 years ago
parent
commit
b94294f6b5
2 changed files with 10 additions and 1 deletions
  1. 3
    1
      .rubocop.yml
  2. 7
    0
      .rubocop_todo.yml

+ 3
- 1
.rubocop.yml View 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

+ 7
- 0
.rubocop_todo.yml View 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

Loading…
Cancel
Save