...
- Install the Checkstyle-IDEA plugin from the IntelliJ plugin repository
- Configure the plugin by going to Settings | Other Settings | Checkstyle
- Set Checkstyle version to the same as in
/build_rules.gradlebuildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
(e.g. 8.7) - Set the Scan Scope to Only Java sources (including tests)
- In the Configuration File pane, add a new configuration using the plus icon:
- Set the Description to “Beam”
- Select Use a local Checkstyle file, and point it to
sdks/java/build-tools/src/main/resources/beam/checkstyle.xml
within your repository - Check the box for Store relative to project location, and click Next
- Configure the
checkstyle.suppressions.file
property value tosuppressions.xml
, and click Next, then Finish
- Select “Beam” as the only active configuration file, and click Apply and OK
- Checkstyle will now give warnings in the editor for any Checkstyle violations
...