问题
PMD has a way to ignore particular warning with //NOPMD
comment inside Java source file.
Does Checkstyle have similar option?
回答1:
Yes, look at the SuppressionCommentFilter and SuppressWithNearbyCommentFilter options.
来源:https://stackoverflow.com/questions/1704430/is-there-a-way-to-force-checkstyle-to-ignore-particular-warning-in-the-source-co