rubocop: move rspec include to root config file
To avoid confusion and bugs in rubocop robucop-spec should be required from the root config.
This commit is contained in:
parent
bca922fd5b
commit
aa6912425e
@ -4,8 +4,13 @@ AllCops:
|
||||
- '**/Casks/**/*'
|
||||
- '**/vendor/**/*'
|
||||
DisplayCopNames: false
|
||||
RSpec:
|
||||
Patterns:
|
||||
- Homebrew/test/*
|
||||
|
||||
require: ./Homebrew/rubocops.rb
|
||||
require:
|
||||
- ./Homebrew/rubocops.rb
|
||||
- rubocop-rspec
|
||||
|
||||
# enable all formulae audits
|
||||
FormulaAudit:
|
||||
|
||||
@ -2,4 +2,3 @@ inherit_from:
|
||||
- ../.rubocop.yml
|
||||
- .rubocop_todo.yml
|
||||
|
||||
require: rubocop-rspec
|
||||
|
||||
@ -1,14 +1,15 @@
|
||||
# This configuration was generated by
|
||||
# `rubocop --auto-gen-config`
|
||||
# on 2018-09-30 14:57:59 +0200 using RuboCop version 0.59.2.
|
||||
# on 2018-10-08 06:47:14 +0200 using RuboCop version 0.59.2.
|
||||
# The point is for the user to remove these configuration records
|
||||
# one by one as the offenses are removed from the code base.
|
||||
# Note that changes in the inspected code, or installation of new
|
||||
# versions of RuboCop, may require this file to be generated again.
|
||||
|
||||
# Offense count: 27
|
||||
# Offense count: 28
|
||||
RSpec/AnyInstance:
|
||||
Exclude:
|
||||
- 'cask/artifact/uninstall_zap_shared_examples.rb'
|
||||
- 'cask/cmd/create_spec.rb'
|
||||
- 'cask/cmd/edit_spec.rb'
|
||||
- 'cask/cmd/outdated_spec.rb'
|
||||
@ -21,7 +22,7 @@ RSpec/AnyInstance:
|
||||
- 'utils/analytics_spec.rb'
|
||||
- 'utils/git_spec.rb'
|
||||
|
||||
# Offense count: 139
|
||||
# Offense count: 146
|
||||
# Configuration parameters: Prefixes.
|
||||
# Prefixes: when, with, without
|
||||
RSpec/ContextWording:
|
||||
@ -31,7 +32,7 @@ RSpec/ContextWording:
|
||||
RSpec/DescribeClass:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 573
|
||||
# Offense count: 581
|
||||
# Configuration parameters: Max.
|
||||
RSpec/ExampleLength:
|
||||
Enabled: false
|
||||
@ -58,6 +59,16 @@ RSpec/ExpectInHook:
|
||||
RSpec/FilePath:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 6
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: implicit, each, example
|
||||
RSpec/HookArgument:
|
||||
Exclude:
|
||||
- 'cask/artifact/uninstall_zap_shared_examples.rb'
|
||||
- 'spec_helper.rb'
|
||||
- 'support/helper/cask/fake_system_command.rb'
|
||||
|
||||
# Offense count: 6
|
||||
# Configuration parameters: AssignmentOnly.
|
||||
RSpec/InstanceVariable:
|
||||
@ -67,7 +78,18 @@ RSpec/InstanceVariable:
|
||||
- 'utils/git_spec.rb'
|
||||
- 'version_spec.rb'
|
||||
|
||||
# Offense count: 116
|
||||
# Offense count: 1
|
||||
RSpec/IteratedExpectation:
|
||||
Exclude:
|
||||
- 'cask/artifact/uninstall_zap_shared_examples.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
RSpec/LeadingSubject:
|
||||
Exclude:
|
||||
- 'cask/artifact/uninstall_zap_shared_examples.rb'
|
||||
|
||||
# Offense count: 122
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: have_received, receive
|
||||
RSpec/MessageSpies:
|
||||
@ -82,12 +104,12 @@ RSpec/MissingExampleGroupArgument:
|
||||
RSpec/MultipleDescribes:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 544
|
||||
# Offense count: 548
|
||||
# Configuration parameters: AggregateFailuresByDefault.
|
||||
RSpec/MultipleExpectations:
|
||||
Max: 26
|
||||
|
||||
# Offense count: 936
|
||||
# Offense count: 946
|
||||
RSpec/NamedSubject:
|
||||
Enabled: false
|
||||
|
||||
@ -110,6 +132,11 @@ RSpec/RepeatedExample:
|
||||
- 'compiler_selector_spec.rb'
|
||||
- 'utils/shell_spec.rb'
|
||||
|
||||
# Offense count: 2
|
||||
RSpec/ScatteredLet:
|
||||
Exclude:
|
||||
- 'cask/artifact/uninstall_zap_shared_examples.rb'
|
||||
|
||||
# Offense count: 31
|
||||
RSpec/SubjectStub:
|
||||
Exclude:
|
||||
@ -121,7 +148,7 @@ RSpec/SubjectStub:
|
||||
- 'language/python_spec.rb'
|
||||
- 'os/mac/java_requirement_spec.rb'
|
||||
|
||||
# Offense count: 64
|
||||
# Offense count: 65
|
||||
# Configuration parameters: IgnoreSymbolicNames.
|
||||
RSpec/VerifiedDoubles:
|
||||
Enabled: false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user