Making checkstyle work

SQ 8.9
Checkstyle plugin 8.4

How can I add a checkstyle configuration to the server?

I have tried using the UI Administration->Configuration->Languages->Java->Checker Filters to enter a very simple addition:

<property name="charset" value="UTF-8"/>

On running the scanner from a maven plugin:
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: (default-cli) on project platform-documentmanagement-service: Can not execute Checkstyle: Cannot set property 'charset' to 'UTF-8,UTF-8': InvocationTargetException


In general you should direct questions about the Checkstyle plugin to its maintainers (in that project). This question’s pretty easy to. You need to add the Checkstyle rules to your Quality Profile.