From e600b58ca50ac10778adbbc726b991d3de2af921 Mon Sep 17 00:00:00 2001 From: Raj Sodhi <raj.sodhi@nyu.edu> Date: Sat, 11 May 2024 01:22:13 +0000 Subject: [PATCH] Fix Performance/StringInclude offenses --- .rubocop_todo/performance/string_include.yml | 6 ------ spec/support/helpers/query_recorder.rb | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 .rubocop_todo/performance/string_include.yml diff --git a/.rubocop_todo/performance/string_include.yml b/.rubocop_todo/performance/string_include.yml deleted file mode 100644 index c84976d55bf70..0000000000000 --- a/.rubocop_todo/performance/string_include.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# Cop supports --autocorrect. -Performance/StringInclude: - Details: grace period - Exclude: - - 'spec/support/helpers/query_recorder.rb' diff --git a/spec/support/helpers/query_recorder.rb b/spec/support/helpers/query_recorder.rb index e8fa73a1b958f..a0cbc34519e02 100644 --- a/spec/support/helpers/query_recorder.rb +++ b/spec/support/helpers/query_recorder.rb @@ -108,7 +108,7 @@ def occurrences_starting_with(str) def ignorable?(values) return true if skip_schema_queries && values[:name]&.include?("SCHEMA") - return true if values[:name]&.match(/License Load/) + return true if values[:name]&.include?('License Load') false end -- GitLab