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.
This commit is contained in:
James Edwards-Jones 2018-10-09 18:18:53 +01:00
parent ca440758be
commit b75b516cfc

View file

@ -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: