Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Khaled AMIRAT
Source Code Analyzer
Commits
5ca75f27
Commit
5ca75f27
authored
Dec 12, 2019
by
E19C506H
Browse files
noPackage
parent
326093f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/atl/bestPractices.atl
View file @
5ca75f27
...
...
@@ -73,10 +73,4 @@ helper def: avoidStringBufferField() : Set(smm!Measure) =
--====Khaled AMIRAT no package declaration
-- Rule for metrics noPackageDeclaration : return the set of class Measures that violates the rule.
helper def: noPackageDeclaration() : Set(smm!Measure) =
-- Browse through all class(CompilationUnit)
java!CompilationUnit.allInstances()
->select(compUnit | compUnit.package.oclIsUndefined())
->collect(err | thisModule.MesureAvoidNoPackageDeclaration(err));
src/main/atl/codestyle.atl
View file @
5ca75f27
...
...
@@ -64,3 +64,10 @@ helper def: longVariable() : Set(smm!Measure) =
-> select( variable | variable.name.size() > 17)
-> collect (variable | thisModule.MeasureLongVariable(variable));
--====Khaled AMIRAT no package declaration
-- Rule for metrics noPackageDeclaration : return the set of class Measures that violates the rule.
helper def: noPackageDeclaration() : Set(smm!Measure) =
-- Browse through all class(CompilationUnit)
java!CompilationUnit.allInstances()
->select(compUnit | compUnit.package.oclIsUndefined())
->collect(err | thisModule.MesureAvoidNoPackageDeclaration(err));
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment