From: Toshi MARUYAMA Date: Wed, 23 Oct 2019 06:44:43 +0000 (+0000) Subject: rubocop: set Layout/SpaceBeforeBlockBraces parameters used more than others X-Git-Tag: 4.1.0~251 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=136130d3f0e5d62a8867be2733d2ffd736939e87;p=redmine.git rubocop: set Layout/SpaceBeforeBlockBraces parameters used more than others git-svn-id: http://svn.redmine.org/redmine/trunk@18852 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop.yml b/.rubocop.yml index 9855bdece..b7ce1f8dc 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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: diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0d769fdfa..a29945e3b 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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: