Skip to content

Commit

Permalink
Set default value for whitelist in VariableNamingCheck (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiaanspeck authored Nov 20, 2024
1 parent cf68d5c commit ac0d0b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- Fix sslr-magik-toolkit's "Evaluate XPath"-button.
- Add UndefinedVariable check to Sonar way profile.
- Add ability to override aliases path and environment path in tasks in VSCode extension.
- Set default value for `whitelist` in VariableNamingCheck.
- Several fixes.

### Breaking changes (reiterated from above)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ public class VariableNamingCheck extends MagikCheck {
@SuppressWarnings("checkstyle:VisibilityModifier")
public int maxLength = DEFAULT_MAX_LENGTH;

/** Whitelist (comma separated) of variable names to allow/ignore. */
/** Whitelist of variable names to allow/ignore, separated by ','. */
@RuleProperty(
key = "whitelist",
description = "Whitelist (comma separated) of variable names to allow/ignore.",
defaultValue = "" + DEFAULT_WHITELIST,
description = "Whitelist of variable names to allow/ignore, separated by ','",
type = "STRING")
@SuppressWarnings("checkstyle:VisibilityModifier")
public String whitelist = DEFAULT_WHITELIST;
Expand Down

0 comments on commit ac0d0b6

Please sign in to comment.