Skip to content

Instantly share code, notes, and snippets.

@palkan
Last active March 22, 2022 12:44
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save palkan/623c0816b05ed246bfe0cb406050990a to your computer and use it in GitHub Desktop.
Save palkan/623c0816b05ed246bfe0cb406050990a to your computer and use it in GitHub Desktop.
rubocop-rspec config
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
@palkan
Copy link
Author

palkan commented Feb 4, 2022

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