3 ms·
If you had static analysis in from the start, that wouldn't be a problem. If you add static analysis to a messy project, define success thresholds based on the
by frobozz 11y ago
If you had static analysis in from the start, that wouldn't be a problem.
If you add static analysis to a messy project, define success thresholds based on the current violation count, and/or disable violation categories that you can live with. The rule then should be "don't make it worse, try to make it a bit better when you can", rather than "don't commit anything to main until the checker says it's perfect".
- AnimalMuppet 11y agoOur approach was, fix the really horrible ones now, and don't add new ones that we care about. Then, as we have time, fix the next-most-horrible ones.