HackerTrans
TopNewTrendsCommentsPastAskShowJobs

engineeringmtm

no profile record

comments

engineeringmtm
·4 lata temu·discuss
It can be brutal to use rubocop in an old project. Here is how we did it.

We only lint the files that changed after the date we integrated rubocop : `git -c log.showRoot=false log --no-merges --pretty=format: --name-only --since="2022-01-01"`

Then we heavily customized `.rubocop.yml` to avoid the rules that were not auto-correctable.

It was still brutal for a couple of weeks but now, maybe 2 years later, everything is fine.