Coding Style
My preferred coding styles, for spinning up new projects:
Ruby
Use Standard, which is built on top of RuboCop.
See this post for a good Standard+Rubocop project config, so you can just use Rubocop tooling in your editor.
See also this post, safe-auto-correct is now a default!
A full (manual) configuration set for rails+rspec, noteworthy for the Layout/ClassStructure
setting.
Javascript
Use Standard JS, which is built on top of eslint.
Git notes:
Create a .git-blame-ignore-revs
file with one commit hash per line (comments with #
) to get [Github to ignore those commits] when doing git blame
and related analysis. Run git config blame.ignoreRevsFile .git-blame-ignore-revs
to get your local git to do likewise.
Now whenever you do a few automated cleanups (one type per commit yeah?) just add that commit hash to the file, and enjoy the lack of noise in your git history.