Skip to content

Instantly share code, notes, and snippets.

@thermistor
Forked from gavvvr/.rubocop.yml
Created January 27, 2022 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thermistor/a7842fc5157ab80a7a41dbd43e512d79 to your computer and use it in GitHub Desktop.
Save thermistor/a7842fc5157ab80a7a41dbd43e512d79 to your computer and use it in GitHub Desktop.
Rubocop IDE linting using/overriding standardrb rules
require:
- standard
- rubocop-rspec
inherit_gem:
# First check this: https://github.com/testdouble/standard#how-do-i-run-standard-in-my-editor
# If your editor invokes 'rubocop' directly and knows nothing about 'standard' gem,
# it can be useful to inherit 'standard' set of rules
standard: config/base.yml
# You can also override standardrb rules
Style/StringLiterals:
EnforcedStyle: double_quotes
# Or enable additional Cops
RSpec:
Enabled: true
source "https://rubygems.org"
gem "standard", group: [:development, :test]
group :development do
gem "rubocop-rspec"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment