Closed shinsukeimai closed 2 years ago
Does rubocop have the option to disable all and then enable only what you need one by one?
https://docs.rubocop.org/rubocop/configuration.html#generic-configuration-parameters
DisabledByDefault
Ah nice, I thought it was never implemented https://github.com/rubocop/rubocop/issues/1918#issuecomment-269494243
I checked it works on global-web by fetching via inherit_from.
We can use this not globally if we import it via inherit_from
.
What
Introduces rspec rubocop
Why
In
global-web
, we disabled rspec rubocop. However, in some cases we would like to point out our coding rule violation. So I add rpsec rubocop.https://github.com/cookpad/global-web/pull/33185
How
I just added one rule as a first step. https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass
https://github.com/cookpad/global-style-guides/blob/028a31d62de5ce056cd3801080ee36e9285b5b90/.rubocop.rspec.yml#L51-L52