3 ms·
I remember adding a linter to a relatively large project that I was working on after a few months and then realizing how many errors there were that I was surpr
by xmprt 6y ago
I remember adding a linter to a relatively large project that I was working on after a few months and then realizing how many errors there were that I was surprised the project even worked in some cases (it probably didn't but I never bothered testing those edge cases).
- jrumbut 6y agoPlenty of projects that are actually fine blow up linters. If you to want to add a linter you can either add one rule at a time or make it part of your process that the number of warnings goes down with every merge.
- xmprt 6y agoIn that project it was about 100 or so errors that were all really easy to fix (no major refactoring required) so I just sat down and went through the list one by one until I had 0 errors, 0 warnings. A lot of the errors were just styling. Some were errors where the value could have been null/forgot a try-catch block (although almost never was in practice unless I changed some code elsewhere accidentally), and a few were so major that one of the features that I implemented wasn't working at all but I never realized (mostly because I was one of the few people using the app and never really tested the feature).