Last active
January 27, 2022 07:29
-
-
Save gavvvr/5873313c6a87ba1d32ea31920d0557f4 to your computer and use it in GitHub Desktop.
Rubocop IDE linting using/overriding standardrb rules
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: | |
- 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 |
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
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