diff options
author | Rémy Coutable <remy@rymai.me> | 2018-10-11 19:10:42 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-10-15 14:28:03 +0200 |
commit | 02c47f2f73ac2d5a33b9a6c971668a38397b4910 (patch) | |
tree | b4e9120c8c2592529bbbee6683b926c483fddc3b /rubocop/rubocop.rb | |
parent | 63cd88c668130d22f4a3d708894d0283a5941319 (diff) | |
download | gitlab-ce-02c47f2f73ac2d5a33b9a6c971668a38397b4910.tar.gz |
Add a new QA::ElementWithPattern cop
This cop forbids the use of `element :foo, 'pattern'` and
`element :bar, /pattern/` in QA files.
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'rubocop/rubocop.rb')
-rw-r--r-- | rubocop/rubocop.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rubocop/rubocop.rb b/rubocop/rubocop.rb index 76d6037706e..6c9b8753c1a 100644 --- a/rubocop/rubocop.rb +++ b/rubocop/rubocop.rb @@ -29,6 +29,7 @@ require_relative 'cop/migration/update_large_table' require_relative 'cop/project_path_helper' require_relative 'cop/rspec/env_assignment' require_relative 'cop/rspec/factories_in_migration_specs' +require_relative 'cop/qa/element_with_pattern' require_relative 'cop/sidekiq_options_queue' require_relative 'cop/destroy_all' require_relative 'cop/ruby_interpolation_in_translation' |