Skip to content

Commit

Permalink
Merge 35dd73a into 449bb1c
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovio committed Aug 23, 2019
2 parents 449bb1c + 35dd73a commit 8d9644b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* XPECT_SETUP org.uqbar.project.wollok.tests.xpect.WollokXPectTest END_SETUP */

const LOTI = 2

// XPECT warnings --> "Object name should start with lowercase" at "Juancete"
object Juancete { }

Expand Down
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.isGlobal) report(WollokDslValidator_VARIABLE_NAME_MUST_START_LOWERCASE, c,
WNAMED__NAME, VARIABLE_NAME_MUST_START_LOWERCASE)
}

Expand Down

0 comments on commit 8d9644b

Please sign in to comment.