From b94294f6b59b89bbd631139907439bf5799ccda1 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 23 Oct 2019 06:44:31 +0000 Subject: [PATCH] rubocop: set Layout/SpaceInsideBlockBraces parameters used more than others git-svn-id: http://svn.redmine.org/redmine/trunk@18851 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop.yml | 4 +++- .rubocop_todo.yml | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 8a92acfd3..9855bdece 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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 diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 8517c19ce..0d769fdfa 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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 -- 2.39.5