Checkstyle

The Taskana-Checkstyle settings are specified under taskana/qa/checkstyle/checkstyle.xml. The import depends on the editor you use.

IntelliJ

Open plugin marketplace for Intellij in File → Settings → Plugins (control + alt + s) and install CheckStyle-IDEA plugin.

 

After the installation, go to File → Settings → Tools → Checkstyle and apply the following configuration:

  1. Choose scan scope: Only Java sources (including Tests)

  2. Add a new configuration file

  3. Choose the file checkstyle.xml from the taskana/qa/checkstyle folder

  4. [Optional] Check “Treat checkstyle errors as warnings”

Refer to the picture below for reference