diff --git a/.rubocop.yml b/.rubocop.yml index c674cfbcf51909d195668fe0dac798e1b8530bd5..7bcd09bef1bc23155fa25e142b9be888601a1199 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -917,6 +917,8 @@ Lint/ShadowingOuterLocalVariable: Lint/AssignmentInCondition: Enabled: false +Lint/UnneededSplatExpansion: + Enabled: false Lint/UnusedBlockArgument: Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b18adcc8b2f74366839e17696f36987999e29e73..f4497e5ac25391970afa0296495b0e513ab91a4e 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -6,23 +6,6 @@ # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. -# Offense count: 23 -# Cop supports --auto-correct. -Lint/UnneededSplatExpansion: - Exclude: - - 'app/services/projects/update_pages_service.rb' - - 'config/application.rb' - - 'lib/banzai/filter/gollum_tags_filter.rb' - - 'lib/bitbucket/page.rb' - - 'lib/gitlab/markup_helper.rb' - - 'spec/helpers/auth_helper_spec.rb' - - 'spec/models/project_wiki_spec.rb' - - 'spec/requests/api/projects_spec.rb' - - 'spec/requests/api/tags_spec.rb' - - 'spec/requests/api/v3/projects_spec.rb' - - 'spec/support/seed_helper.rb' - - 'spec/support/test_env.rb' - # Offense count: 3 # Cop supports --auto-correct. Performance/RedundantBlockCall: