It is recommended to use IntelliJ IDEA as a development tool and install the CheckStyle-IDEA.
After installing the plug-in:
-
Open
Preferences
->Tools
->Checkstyle
, add a new item in theConfiguration File
list, and choose dev/google_checks.xml as the local Checkstyle file. -
Open
Editor
->CodeStyle
,Import schema
->CheckStyle Configuration
, choose dev/google_checks.xml to import.
Run the following command to check code style:
./mvnw validate