开发者

Is there a way to force Checkstyle to ignore particular warning in the source code? [duplicate]

This qu开发者_如何学JAVAestion already has answers here: Disable a particular Checkstyle rule for a particular line of code? (9 answers) Closed 8 years ago.

PMD has a way to ignore particular warning with //NOPMDcomment inside Java source file.

Does Checkstyle have similar option?


Yes, look at the SuppressionCommentFilter and SuppressWithNearbyCommentFilter options.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜