diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-02-08 17:09:16 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-06-14 13:16:44 -0500 |
commit | 69ad827e829175bebb985c8afe76174f42fc60bc (patch) | |
tree | 635f61331140628d439497b36f2c67aeb570a648 /rubocop/rubocop.rb | |
parent | 557cbba7df35e2f3a27995f1caf77d40a3c223fa (diff) | |
download | gitlab-ce-69ad827e829175bebb985c8afe76174f42fc60bc.tar.gz |
Add a custom RSpec/SingleLineHook cop
This cop adds an offense when `before`, `after`, or `around` are used as
single-line blocks.
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 6b8d127dde6..55d7708fa8c 100644 --- a/rubocop/rubocop.rb +++ b/rubocop/rubocop.rb @@ -15,3 +15,4 @@ require_relative 'cop/migration/remove_index' require_relative 'cop/migration/reversible_add_column_with_default' require_relative 'cop/migration/timestamps' require_relative 'cop/migration/update_column_in_batches' +require_relative 'cop/rspec/single_line_hook' |