diff options
author | Rémy Coutable <remy@rymai.me> | 2017-06-29 18:03:17 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-06-30 17:52:27 +0200 |
commit | 1b0c6ffd512d0bee24964936da02e1b10d6a5a67 (patch) | |
tree | e60bf4570de0b5088aa3e603aab6d7ecd0516476 /.rubocop.yml | |
parent | d52034b2054bbefebeaf4771a87b57dfe4fc7c86 (diff) | |
download | gitlab-ce-1b0c6ffd512d0bee24964936da02e1b10d6a5a67.tar.gz |
Disable RSpec/BeforeAfterAll and enable RSpec/ImplicitExpect copsenable-a-few-rubocop-rspec-cops
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 32ec60f540b..9785e7626f9 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -965,6 +965,10 @@ RSpec/AnyInstance: RSpec/BeEql: Enabled: true +# We don't enforce this as we use this technique in a few places. +RSpec/BeforeAfterAll: + Enabled: false + # Check that the first argument to the top level describe is the tested class or # module. RSpec/DescribeClass: @@ -1024,6 +1028,12 @@ RSpec/FilePath: RSpec/Focus: Enabled: true +# Configuration parameters: EnforcedStyle, SupportedStyles. +# SupportedStyles: is_expected, should +RSpec/ImplicitExpect: + Enabled: true + EnforcedStyle: is_expected + # Checks for the usage of instance variables. RSpec/InstanceVariable: Enabled: false |