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:
parent
ca440758be
commit
b75b516cfc
1 changed files with 10 additions and 1 deletions
11
.rubocop.yml
11
.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:
|
||||
|
|
Loading…
Reference in a new issue