Skip to content
代码片段 群组 项目
未验证 提交 e600b58c 编辑于 作者: Raj Sodhi's avatar Raj Sodhi 提交者: GitLab
浏览文件

Fix Performance/StringInclude offenses

上级 099fdad8
No related branches found
No related tags found
无相关合并请求
---
# Cop supports --autocorrect.
Performance/StringInclude:
Details: grace period
Exclude:
- 'spec/support/helpers/query_recorder.rb'
...@@ -108,7 +108,7 @@ def occurrences_starting_with(str) ...@@ -108,7 +108,7 @@ def occurrences_starting_with(str)
def ignorable?(values) def ignorable?(values)
return true if skip_schema_queries && values[:name]&.include?("SCHEMA") 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 false
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册