IDEA的CheckStyle插件 - java方式的警告演示和自动修复? [英] CheckStyle plugin for IDEA - java way of warnings presentation and automatic fixes?

查看:3314
本文介绍了IDEA的CheckStyle插件 - java方式的警告演示和自动修复?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 是否可以使其显示警告列表java / spellchecker样式而不是旧学校的行号错误列表?

  2. 可以它会自动修复'='等错过空间等内容吗?

也许我需要一个不同的插件,然后呢?

Maybe I need a different plugin, which one then?

推荐答案

尝试 QAPlug - Checkstyle插件。然后去分析 - 分析代码(不是标准分析!)然后点击运行附近的...选择一个具体的配置文件,然后按导入按钮。

Try QAPlug - Checkstyle plugin. Then go Analyze - Analyze Code (not the standard Analyze!) then click "..." near Run with chosen profile select a concrete profile and press the import button.

在下一个对话框中选择checkstyle规则文件,然后单击确定按钮。而已。等待结果。我有类似的东西。

In the next dialog select the checkstyle rules file and then click the OK button. That's it. Just wait for the results. I got something like this.

该插件有其局限性。例如,我没有设法使用带有抑制的文件。

That plugin has its limitations however. For example, I didn't manage to use a file with suppressions with it.

你也可以使用插件 CheckStyle-IDEA 具有良好的配置并允许您使用抑制自定义检查并立即在编辑器中显示检查警告,但要应用您需要设置项目设置 - 检查 - CheckStyle - IDE中的实时扫描设置。

You can also use the plugin CheckStyle-IDEA which also has good configurations and allows you to use suppressions, custom checks and displays the inspection warnings in the editor immediately, but to apply that you need to set Project Settings - Inspections - CheckStyle - Real-Time Scan in the IDE settins.

回答第二个问题,我没有在这些插件中找到任何自动重新格式化功能,只需检查。

Answering the second question, I didn't find any automatical reformat capabilities in these plugins, just checks.

这篇关于IDEA的CheckStyle插件 - java方式的警告演示和自动修复?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆