From 230abc1cefee30182905d5e52ddc8b62b548a432 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 16 Oct 2019 13:00:29 +0000 Subject: [PATCH] rubocop: disable Style/TrailingCommaInArrayLiteral git-svn-id: http://svn.redmine.org/redmine/trunk@18689 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop.yml | 3 +++ .rubocop_todo.yml | 16 ---------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 22b3e0687..07d9f511b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -92,3 +92,6 @@ Style/IdenticalConditionalBranches: Exclude: - 'config/initializers/10-patches.rb' - 'lib/redmine/wiki_formatting/textile/redcloth3.rb' + +Style/TrailingCommaInArrayLiteral: + Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index c4c66b15d..d8b156365 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1437,22 +1437,6 @@ Style/SymbolProc: Style/TernaryParentheses: Enabled: false -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyleForMultiline. -# SupportedStylesForMultiline: comma, consistent_comma, no_comma -Style/TrailingCommaInArrayLiteral: - Exclude: - - 'app/models/time_entry_query.rb' - - 'test/functional/repositories_git_controller_test.rb' - - 'test/functional/repositories_mercurial_controller_test.rb' - - 'test/helpers/application_helper_test.rb' - - 'test/unit/attachment_test.rb' - - 'test/unit/custom_field_test.rb' - - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb' - - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb' - - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb' - - 'test/unit/repository_git_test.rb' - # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForMultiline. # SupportedStylesForMultiline: comma, consistent_comma, no_comma