Maven is configured to automatically run checksytle plugin during the build, no other action is needed. The current configuration won't fail the build, only emit warnings.
Adhering to to these style checks is mandatory.
In the future the the severity level will be changed to error, and will fail the build.
The checkstyle.xml
file that defines the checks to be used is under /eclipse-plugin/eclipse/cc.codechecker.eclipse.parent/
The Maven checkstyle plugin also configured in this folders pom.xml under the build section.
-
- Install
Checkstyle Plug-in
from Eclipse marketplace.
- Install
-
- To configure Checkstyle plug-in go to
preferences > Checkstyle
. - Add the checkstyle.xml with
new
as anExternal configuration file
, and specify a name also. - This step is optional:
Set as Default
the new configuration - Under the project preferences tick
Checkstyle active for this project
and make sure that the configuration you added is being used.
- To configure Checkstyle plug-in go to
-
- Checkstyle automatically monitors the project for imperfections.
- The lines containing checkstyle problems are yellowed.
- There is a view (Checkstyle violations) that can be opened.
- There is a right click context item. (Apply Checkstyle fixes).
Codacy is set to use the same checkers as the project.