Auto-correct remaining offenses for Performance/StringInclude
String#include? is much faster than Regexp#match (etc.)
显示
- .rubocop_todo/performance/string_include.yml 0 个添加, 13 个删除.rubocop_todo/performance/string_include.yml
- app/models/snippet_repository.rb 1 个添加, 1 个删除app/models/snippet_repository.rb
- config/initializers/macos.rb 1 个添加, 1 个删除config/initializers/macos.rb
- config/spring.rb 1 个添加, 1 个删除config/spring.rb
- ee/app/models/ee/container_registry/event.rb 1 个添加, 1 个删除ee/app/models/ee/container_registry/event.rb
- ee/lib/gitlab/auth/smartcard/certificate.rb 2 个添加, 2 个删除ee/lib/gitlab/auth/smartcard/certificate.rb
- ee/spec/models/container_registry/event_spec.rb 8 个添加, 0 个删除ee/spec/models/container_registry/event_spec.rb
- lib/kramdown/parser/atlassian_document_format.rb 1 个添加, 1 个删除lib/kramdown/parser/atlassian_document_format.rb
- lib/prometheus/pid_provider.rb 1 个添加, 1 个删除lib/prometheus/pid_provider.rb
- spec/features/projects/jobs_spec.rb 1 个添加, 1 个删除spec/features/projects/jobs_spec.rb
- spec/spec_helper.rb 2 个添加, 2 个删除spec/spec_helper.rb
加载中
想要评论请 注册 或 登录