Checkstyle is a static code analysis tool used in software development for checking if Java source code complies with coding rules.
Checkstyle is important since it is an automated tool that is used to enforce a consistent style. It makes the Code have more quality.
Although You can override the checkstyle using
./gradlew build -x checkstyleMain
Also You can solve the checkstyle issues by:
Navigating to the CRIO directory in your workspace, right click on the CrioEditorStyle.xml file
Choose the Set The Checkstyle Configuration File option
Go to a particular file where the checkstyle issue were generated.
Press right-click and choose Format Document
Now, you have to organize your imports as well.
For Lexicographical errors present in the particular file.
- Press ctrl+shift+P on your keyboard.
- Search and select the option Organize imports, or you can also use the shortcut (shift+alt+O)