Skip to content

Instantly share code, notes, and snippets.

@gavvvr
Last active January 27, 2022 07:29
Show Gist options
  • Save gavvvr/5873313c6a87ba1d32ea31920d0557f4 to your computer and use it in GitHub Desktop.
Save gavvvr/5873313c6a87ba1d32ea31920d0557f4 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