Here, a listicle of advice you never asked for!
A method to locate and fix linting errors in Rubocop one at a time:
- choose a “cop” from the
- remove the line which includes the
rubocop --only Lint/IneffectiveAccessModifier
- fix issues and test fixes with the
rubocop --auto-gen-config to regenerate the
git checkout .rubocop.yml to add back include line
- commit this change with the name of the “cop” used
I really really tried to use it at FakeFS.
You’re desperate. Your legacy code-generation code outputs a Hash using
hash#to_s. You’ve flouted many Rubocop rules to get to where you are. Suddenly, it gets too much. You search the Web for a pretty-print function that you want: a Rubocop-friendly Hash pretty-printer.
Empty-handed, you cough up blood, while a police car’s red-blue lights flicker in through the blinds of your run-down office.
With tired fingers, you type out something like:
Then, you faint, blessed sleep converges on you and envelopes you in a colorless void.
Photo credit: sethw