Allow //NOPMD without trailing comment
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Marking a certain line of code as reviewed, works by adding //NOPMD as a trailing comment. According to other code analysis tools (e.g. checkstyle) and my personal opinion, trailing comments are bad practice.
I'd prefer to have the NOPMD-annotaion in an extra line, e.g.
// NOPMD: System.out.println("Important");
instead of:
System.out.println("Important"); // NOPMD
A workaround is to configure CheckStyle to allow this, but I agree with the issue.
https://stackoverflow.com/a/26000122/253468