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.

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

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.


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