Hi all, I have implemented a custom language with a bunch of custom rules. In one of these rules, I wanted to have a limit configurable. So I added this to my rule:
private static final String DEFAULT_MAX_ALLOWED_STR = "25";
@RuleProperty(
key = "limit",
description = "maximum number of allowed steps within a scenario",
defaultValue = DEFAULT_MAX_ALLOWED_STR)
public String maxAllowedStr = DEFAULT_MAX_ALLOWED_STR;
However, that parameter is not shown in the frontend, and it cannot be configured in a quality profile. What else do I need to do?
I eventually found out after some inspection of the Sonar code. For some other reasons, I had to set up the repositoy myself and fill the rules. In that, I had to add these methods: