Constant does not match the regular expression provided (WMB)
For example, if you want all “CONSTANTS” to be all capitals, you would use a regular expression like:
[A-Z]{0,50}$
So that
DECLARE ACCOUNTNAMEPREFIX CONSTANT CHARACTER ‘acc-’;
Would be valid but
DECLARE ACCOUNT_NAME_PREFIX CONSTANT CHARACTER ‘acc-’;
would not be – or vice versa.
This can be configured on a per project basis using the following property:
sonar.mb.esql.constant.regex | C_[A-Z_]{0,50}$ |