今天IDEA执行checkstyle插件的时候报错the rule file is blacklisted for 60s,上谷歌搜了下,在github上checkstyle项目的作者说了,该问题是checkstyle8.1的版本引入的

IDEA checkstyle插件报错 the rule file is blacklisted for 60s

有2种解决方法:

①修改IDEA的checkstyle版本为8.1之前的版本。File-Settings-Checkstyle(需要在Plugins里面开启)-Checkstyle version( )改为8.0或更低的版本

IDEA checkstyle插件报错 the rule file is blacklisted for 60s

②第二种方法是更新自己的rule file兼容8.1+版本

实现:将rule file文件下的<module name="SuppressWarningsFilter" />迁移放到<module name="TreeWalker">下,详情参看https://github.com/jshiell/checkstyle-idea/issues/341


建议用第一种方法,简单方便。

相关文章:

  • 2022-12-23
  • 2021-06-29
  • 2021-08-23
  • 2022-01-11
  • 2021-03-30
  • 2022-01-09
  • 2021-06-02
  • 2021-06-06
猜你喜欢
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-06-10
  • 2021-08-22
  • 2021-06-22
相关资源
相似解决方案