Skip to content

Commit

Permalink
Fixes eclipse-vorto#965 - Remove validation check that operations can…
Browse files Browse the repository at this point in the history
… not have the same name as an entity.

Signed-off-by: Simon Pizonka <[email protected]>
  • Loading branch information
Ebolon committed Jun 21, 2018
1 parent 2de9962 commit 3a27778
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,24 +134,6 @@ class FunctionblockValidator extends AbstractFunctionblockValidator {
}
}

@Check
def checkOpNameAgainstEntityName(FunctionblockModel model) {

var listEE= getAllTypeFromReferencedFile(model);

listEE.addAll(model.entities)
listEE.addAll(model.enums)

var set = getNonDuplicateLowerCasedNameSet(listEE)
var ops = model.functionblock.operations

for(op : ops){
if(set.contains(op.name.toLowerCase)){
error(SystemMessage.ERROR_OPERATION_SAME_NAME_AS_TYPE, op,FunctionblockPackage.Literals.OPERATION__NAME)
}
}
}

@Check
def checkVersionPattern(FunctionblockModel functionblock) {
if (!functionblock.version.matches("\\d+\\.\\d+\\.\\d+(\\-.+)?")) {
Expand Down

0 comments on commit 3a27778

Please sign in to comment.