CheckStyle plugin for IDEA - java way to present warnings and automatic fixes?

  • Is it possible to present him with a list of java / spellchecker style warnings, rather than an old list of errors in a line with line numbers?
  • Can it automatically fix things like missing space next to '=', etc.?

Maybe I need another plugin, which then?

+5
source share
1 answer

Try QAPlug - the Checkstyle plugin. Then go to Analyze - Analyze Code (not standard analysis!), Then click "..." next to Run, with the selected profile select a specific profile and click the import button.

enter image description here

In the next dialog box, select the validation rule file and click OK. It. Wait for the results. I have something like this.

enter image description here

However, this plugin has its limitations. For example, I could not use the file with suppressions with it.

You can also use the CheckStyle-IDEA plugin, which also has good configurations and allows you to use suppressions, user checks and immediately display inspection warnings in the editor, but you need to use them set Project Settings - Inspections - CheckStyle - Real-time scanning in the IDE settings.

enter image description here

enter image description here

Answering the second question, I did not find any automatic formatting capabilities in these plugins, I just checked.

+8
source

Source: https://habr.com/ru/post/947975/


All Articles