Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...