Question

I'm trying to set the mutable exception coding rule in SonarQube, but it requires a regular expression and any standard regular expression I give it results in:

Validation failed: Value 'regex' must be a regular expression

Google had no results for "regular expression sonarqube" either, so I'm at a loss.

Was it helpful?

Solution

It's a Checkstyle rule. See http://checkstyle.sourceforge.net/config_design.html#MutableException. This is a regular Java expression and there is supposed to be a validation of the regular expression when you click on "Update".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top