我按照步骤add checkstyle
以下是具体步骤:设置步骤
- 转到IntelliJ - >首选项 - >插件 - >浏览存储库。
- 搜索并安装“Checkstyle-IDEA”插件,重新启动IntelliJ。
- 转到IntelliJ - >首选项 - >其他设置 - > Checkstyle。
- 在“配置文件”下,单击“+”并将描述命名为“Customized Checkstyle”。
- 单击“使用可通过HTTP访问的checkstyle文件”和“忽略无效证书”。
- 对于URL使用:https://drive-xxxxxxxxx.xxxxxx.com/view/xxxxx/checkstyle-rules.xml(公司网站)单击“下一步”,然后单击“完成”。
- 单击“Customized Checkstyle”复选框,单击“Apply”和“OK”。
我可以在我的代码中实时运行checkstyle。但是,当我重新格式化代码时,格式化的代码与checkstyle不匹配,请你告诉我我做错了什么?