Skip to content

Commit

Permalink
fix #1739 - Definición de una constante por fuera de un container me
Browse files Browse the repository at this point in the history
pide que inicie en minúscula
  • Loading branch information
nicovio committed Aug 22, 2019
1 parent 449bb1c commit e7d8001
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class WollokDslValidator extends AbstractConfigurableDslValidator {
@DefaultSeverity(WARN)
@CheckGroup(WollokCheckGroup.NAMING_CONVENTION)
def referenciableNameMustStartWithLowerCase(WVariable c) {
if(Character.isUpperCase(c.name.charAt(0))) report(WollokDslValidator_VARIABLE_NAME_MUST_START_LOWERCASE, c,
if(Character.isUpperCase(c.name.charAt(0)) && c.container instanceof WMethodContainer) report(WollokDslValidator_VARIABLE_NAME_MUST_START_LOWERCASE, c,
WNAMED__NAME, VARIABLE_NAME_MUST_START_LOWERCASE)
}

Expand Down

0 comments on commit e7d8001

Please sign in to comment.