CodeStyle for Java

已回答

Hi
I am working on fixing the checkStyle issues for SpringChecks using codeStyleConfig.xml file. I am importing the Scheme and trying to reformat the code and save and fix the issues 

but there are some issues that are not being covered using codestyleConfig.xml . Issues are:
<error line="1" severity="error" message="Line does not match expected header line of &apos;^\Q/*\E$&apos;." source="io.spring.javaformat.checkstyle.check.SpringHeaderCheck"/>

<error line="39" column="51" severity="error" message="Single letter catch variable (use &quot;ex&quot; instead)." source="io.spring.javaformat.checkstyle.check.SpringCatchCheck"/>

<error line="40" column="31" severity="error" message="Reference to instance variable &apos;gpoExceptionFactory&apos; needs &quot;this.&quot;." source="com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck"/>

So is there a way that  these can be added to configStyleConfig.xml file and the issues get fixed when I reformat and save the code?

Could you please guide me with this

0

Hello,

Looks like this needs to be reported to the CheckStyle-IDEA plugin developers at https://github.com/jshiell/checkstyle-idea/issues so that they can introduce changes to the plugin code.

0

请先登录再写评论。