Move basic RSpec rubocop rules to basic cops

These are rules we were already applying.

We've excluded the `factories` folder for some rules because there's a
factory defining a `context` attribute, which rubocop thought was the
`context` RSpec keyword.
This commit is contained in:
Javi Martín
2019-06-24 15:22:35 +02:00
parent 59e107e565
commit 2243809d2e
2 changed files with 34 additions and 30 deletions

View File

@@ -168,15 +168,9 @@ RSpec/AlignRightLetBrace:
RSpec/AnyInstance:
Enabled: false
RSpec/AroundBlock:
Enabled: true
RSpec/BeEql:
Enabled: true
RSpec/BeforeAfterAll:
Enabled: true
Capybara/FeatureMethods:
Enabled: false
@@ -192,12 +186,6 @@ RSpec/DescribeMethod:
RSpec/DescribeSymbol:
Enabled: true
RSpec/EmptyExampleGroup:
Enabled: true
RSpec/EmptyLineAfterSubject:
Enabled: true
RSpec/ExampleLength:
Enabled: false
@@ -213,9 +201,6 @@ RSpec/ExpectOutput:
RSpec/FilePath:
Enabled: true
RSpec/Focus:
Enabled: true
RSpec/ImplicitExpect:
Enabled: true
EnforcedStyle: should
@@ -238,9 +223,6 @@ RSpec/IteratedExpectation:
RSpec/LeadingSubject:
Enabled: true
RSpec/LetBeforeExamples:
Enabled: true
RSpec/MessageChain:
Enabled: true
@@ -267,9 +249,6 @@ RSpec/NestedGroups:
Enabled: true
Max: 4
RSpec/OverwritingSetup:
Enabled: true
RSpec/PredicateMatcher:
Enabled: true
@@ -282,12 +261,6 @@ RSpec/RepeatedDescription:
RSpec/ReturnFromStub:
Enabled: true
RSpec/ScatteredLet:
Enabled: true
RSpec/ScatteredSetup:
Enabled: true
RSpec/SharedContext:
Enabled: true
@@ -300,9 +273,6 @@ RSpec/SubjectStub:
RSpec/VerifiedDoubles:
Enabled: true
RSpec/VoidExpect:
Enabled: true
Security/Eval:
Enabled: true