java - How Do I Prevent Usage of Deprecated Methods With Checkstyles -
is there straightforward way have checkstyle complain usage of deprecated methods? seems java provides facility through xlint, seems produce warnings, , i'm not sure how create fail build.
checkstyle, findbugs, , pmd can't out of box.
but this, best detector -deprecation
compiler option.
ci tools can help break build whenever deprecation warning appears in compiler output. instance, jenkins has warnings plugin may help. also, this post suggests using -werror
compiler option, treats all(!) warnings errors.
java build deprecated checkstyle
No comments:
Post a Comment