13 ms·
I'd like a tool that marks stale comments so I can delete them. If the comment is duplicating what the code does get rid of the comment. Comments that explain "
by rererereferred 2y ago
I'd like a tool that marks stale comments so I can delete them.
If the comment is duplicating what the code does get rid of the comment. Comments that explain "why" the code does something might not need updating that often, but could need removal when the associated code is removed, for example when a library fixes something and you don't need your workaround anymore.
Here's some more cases: https://stackoverflow.blog/2021/12/23/best-practices-for-writing-code-comments/ https://stackoverflow.blog/2021/12/23/best-practices-for-wri...
If the tool could automatically add comments for #5, explain unidiomatic code, and #9, mark incomplete implementations, that would be great.