From 56ec297602793f054dc46649d31e82984ec3afc7 Mon Sep 17 00:00:00 2001 From: Vitali Tatarintev Date: Wed, 30 Mar 2022 11:46:32 +0200 Subject: [PATCH] Move Performance/StringInclude into separate TODO file --- .rubocop_todo.yml | 19 ------------------- .rubocop_todo/performance/string_include.yml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 19 deletions(-) create mode 100644 .rubocop_todo/performance/string_include.yml diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index d3b404c4bc2cdb..6a9caacf87097c 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -143,25 +143,6 @@ Performance/ConstantRegexp: Performance/MethodObjectAsBlock: Enabled: false -# Offense count: 18 -# Cop supports --auto-correct. -# Configuration parameters: AutoCorrect. -Performance/StringInclude: - Exclude: - - 'app/models/snippet_repository.rb' - - 'config/initializers/macos.rb' - - 'config/spring.rb' - - 'ee/app/models/ee/container_registry/event.rb' - - 'ee/lib/gitlab/auth/smartcard/certificate.rb' - - 'lib/gitlab/database/migration_helpers.rb' - - 'lib/kramdown/parser/atlassian_document_format.rb' - - 'lib/prometheus/pid_provider.rb' - - 'qa/qa/ee/page/merge_request/show.rb' - - 'qa/qa/specs/runner.rb' - - 'spec/features/projects/jobs_spec.rb' - - 'spec/spec_helper.rb' - - 'spec/support_specs/helpers/active_record/query_recorder_spec.rb' - # Offense count: 15209 # Configuration parameters: Prefixes. # Prefixes: when, with, without diff --git a/.rubocop_todo/performance/string_include.yml b/.rubocop_todo/performance/string_include.yml new file mode 100644 index 00000000000000..cb6e566094e632 --- /dev/null +++ b/.rubocop_todo/performance/string_include.yml @@ -0,0 +1,15 @@ +--- +# Cop supports --auto-correct. +Performance/StringInclude: + Exclude: + - 'app/models/snippet_repository.rb' + - 'config/initializers/macos.rb' + - 'config/spring.rb' + - 'ee/app/models/ee/container_registry/event.rb' + - 'ee/lib/gitlab/auth/smartcard/certificate.rb' + - 'lib/gitlab/database/migration_helpers.rb' + - 'lib/kramdown/parser/atlassian_document_format.rb' + - 'lib/prometheus/pid_provider.rb' + - 'qa/qa/specs/runner.rb' + - 'spec/features/projects/jobs_spec.rb' + - 'spec/spec_helper.rb' -- GitLab