diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-05-21 18:27:15 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-05-23 15:59:32 -0400 |
commit | 43d9e06b68d82588ca582f43971cae040b04674f (patch) | |
tree | c432108778a9a6dd15198f25e2558a1e3b368d8c /.rubocop.yml | |
parent | c002a560afae7db6a5c778bc78028243c2fc945a (diff) | |
download | gitlab-ce-43d9e06b68d82588ca582f43971cae040b04674f.tar.gz |
Add rubocop-rspecrs-rubocop-rspec
Almost all cops are starting as disabled until we can fix their
violations.
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 03e026ccee9..ca5afde75b1 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,5 @@ +require: rubocop-rspec + AllCops: TargetRubyVersion: 2.1 # Cop names are not displayed in offense messages by default. Change behavior @@ -1071,3 +1073,51 @@ Rails/TimeZone: # Use validates :attribute, hash of validations. Rails/Validation: Enabled: false + +##################### RSpec ################################## + +RSpec/AnyInstance: + Enabled: false + +RSpec/DescribeClass: + Enabled: false + +RSpec/DescribeMethod: + Enabled: false + +RSpec/DescribedClass: + Enabled: false + +RSpec/ExampleLength: + Enabled: false + Max: 5 + +RSpec/ExampleWording: + Enabled: false + CustomTransform: + be: is + have: has + not: does not + IgnoredWords: [] + +RSpec/FilePath: + Enabled: false + CustomTransform: + RuboCop: rubocop + RSpec: rspec + +RSpec/Focus: + Enabled: true + +RSpec/InstanceVariable: + Enabled: false + +RSpec/MultipleDescribes: + Enabled: false + +RSpec/NotToNot: + EnforcedStyle: not_to + Enabled: false + +RSpec/VerifiedDoubles: + Enabled: false |