After running Sonar on one of my project I get a violation for ‘trailing comments’. So I wonder, is this purely related to accepted/recommended code layout conventions for Java or is there ‘more to it’? What’s the reasoning behind it? When I’m looking over some C++ code ( recent Doom code review, there are tons (or binder full of) trailing comments.
Share
From the famous book
Code Complete:Having said that, it’s also about one’s choice about coding style. I would personally avoid trailing comments as they don’t help that much.