2 ms·
- Just delete all comments This is definitely harmful, agreed. - Remove platform code you are not using now, but might in the future Definitely. It's in the
by onion2k 11y ago
- Just delete all comments
This is definitely harmful, agreed.
- Remove platform code you are not using now, but might in the future
Definitely. It's in the repo if you want to get it back, so there's no reason why unused code should be in your source.
- Remove reference code because you are only using platform code
Yes. Remove everything you're not using. It's in the repo.
- Remove test code that is just not called yet, but really should be
And again. Remove it if it's not used. Or start using it. Nothing else is acceptable.
- Remove code from a copied library that is now harder to keep current
You should probably be pinning versions of libraries otherwise you're going to see things break in the future. Upgrading them is a feature.
Deleting comments aside, using negative LOC as a metric does encourage people to write better code.