问题如上,新项目导入之前工程的checkstyle无效
后来查询了一下checkstyle git上面的修复的一个问题,原因这个moudle没有生效,当做冗余代码删掉了,升级checkstyle到7.6版本后,需要把checkstyle 里面RedundantThrows 这一项去除掉,然后导入OK。
Fixes RedundantThrows inspection violations.
Description:
This inspection reports exceptions
that are declared in a method's signature but never
thrown by the method itself or its implementations/derivatives.
本文介绍了解决Checkstyle中出现的RedundantThrows检查问题的方法。通过更新Checkstyle版本至7.6并移除配置文件中的RedundantThrows检查项,可以成功解决模块中的冗余代码问题。
2957

被折叠的 条评论
为什么被折叠?



