Skip to content

Commit

Permalink
Replaces Unicode characters in EncryptedPasswordRule (#171)
Browse files Browse the repository at this point in the history
Unicode character U+2018 in both RULE_NAME & RULE_VIOLATION_MESSAGE
cause the Sonar JSON importer to break.

Co-authored-by: Elias Rangel <1860346@lla.com>
  • Loading branch information
erangel and Elias Rangel authored Jul 17, 2024
1 parent 4ed4cbe commit 6b32207
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import com.avioconsulting.mule.linter.model.rule.RuleViolation
class EncryptedPasswordRule extends Rule {

static final String RULE_ID = 'ENCRYPTED_VALUE'
static final String RULE_NAME = 'The Property File contains secret or password values that are encrypted. '
static final String RULE_VIOLATION_MESSAGE = 'The Property file contains a secret or password that is not encrypted: '
static final String RULE_NAME = 'The Property File contains `secret` or `password` values that are encrypted. '
static final String RULE_VIOLATION_MESSAGE = 'The Property file contains a `secret` or `password` that is not encrypted: '
static final String ENC_REGEX = '(\\!\\[.*?\\])'

EncryptedPasswordRule() {
Expand Down

0 comments on commit 6b32207

Please sign in to comment.