summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2018-10-09 18:18:53 +0100
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2018-10-09 19:15:05 +0100
commitb75b516cfc6d7b22b2107c92a438a8391661bd4a (patch)
tree73835a38cc8b93292baeaa0febeb039eeed1c3cd /.rubocop.yml
parentca440758be33c8bec937a249db9b18b3c9734df9 (diff)
downloadgitlab-ce-b75b516cfc6d7b22b2107c92a438a8391661bd4a.tar.gz
Inline RSpec/FilePath rubocop rule
Moves RSpec/FilePath cop from gitlab-styles, so we can specify filepaths to ignore without hardcoding them in the gem.
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index b7aec5b8b14..242e7615211 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -3,7 +3,9 @@ inherit_gem:
- rubocop-default.yml
inherit_from: .rubocop_todo.yml
-require: ./rubocop/rubocop
+require:
+ - ./rubocop/rubocop
+ - rubocop-rspec
AllCops:
TargetRailsVersion: 4.2
@@ -54,6 +56,13 @@ Style/FrozenStringLiteralComment:
- 'scripts/**/*'
- 'spec/**/*'
+RSpec/FilePath:
+ Exclude:
+ - 'qa/**/*'
+ - 'spec/javascripts/fixtures/*'
+ - 'ee/spec/javascripts/fixtures/*'
+ - 'spec/requests/api/v3/*'
+
Naming/FileName:
ExpectMatchingDefinition: true
Exclude: