Last active
March 22, 2022 12:44
-
-
Save palkan/623c0816b05ed246bfe0cb406050990a to your computer and use it in GitHub Desktop.
rubocop-rspec config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require: | |
- rubocop-rspec | |
# Disable all cops by default, | |
# only enable those defined explcitly in this configuration file | |
RSpec: | |
Enabled: false | |
RSpec/Focus: | |
Enabled: true | |
RSpec/EmptyExampleGroup: | |
Enabled: true | |
RSpec/EmptyLineAfterExampleGroup: | |
Enabled: true | |
RSpec/EmptyLineAfterFinalLet: | |
Enabled: true | |
RSpec/EmptyLineAfterHook: | |
Enabled: true | |
RSpec/EmptyLineAfterSubject: | |
Enabled: true | |
RSpec/HookArgument: | |
Enabled: true | |
RSpec/HooksBeforeExamples: | |
Enabled: true | |
RSpec/ImplicitExpect: | |
Enabled: true | |
RSpec/IteratedExpectation: | |
Enabled: true | |
RSpec/LetBeforeExamples: | |
Enabled: true | |
RSpec/MissingExampleGroupArgument: | |
Enabled: true | |
RSpec/ReceiveCounts: | |
Enabled: true | |
RSpec/Capybara/CurrentPathExpectation: | |
Enabled: true | |
RSpec/FactoryBot/AttributeDefinedStatically: | |
Enabled: true | |
RSpec/FactoryBot/CreateList: | |
Enabled: true |
Thanks! That's helpful.
We plan to upgrade the article soon to keep it up-to-date.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @palkan, I followed your excellent article RuboCoping with legacy. During setup, I got the following warnings:
I did some investigation and indeed the namespaces have been changed in this commit: rubocop/rubocop-rspec@ccf11f7
It would be nice if you could fix it! Thanks!