Java – is there a way to force checkstyle to ignore specific warnings in the source code?

See the English answer > how to disable a particular checkstyle rule for a particular line of code? 5

Does checkstyle have a similar choice?

Solution

Yes, look at the options of suppressioncommentfilter and suppresswithnearbycommentfilter

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>