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
Arthur TROTTIER
Source Code Analyzer
Commits
ce603ed2
Commit
ce603ed2
authored
Dec 23, 2019
by
ArthuurT
Browse files
update comments in analysis.atl
parent
65ea6477
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/atl/analysis.atl
View file @
ce603ed2
...
...
@@ -227,7 +227,7 @@ rule MeasureArrayIsStoredDirectly(s: java!MethodDeclaration){
}
-- ----------------------------------------- AtLeastOneConstructor----------------------------------------------
---
A Measure instance if the class violates the rule AtLeastOneConstructor.
---
creates a a measure when a class does not have any constructor whereas at least one is required
rule MeasureAtLeastOneConstructor(class: java!ClassDeclaration) {
to
om: smm!ObservedMeasure (
...
...
@@ -531,7 +531,7 @@ rule MeasureAvoidUsingShortType(typeShort : java!VariableDeclarationStatement) {
}
}
---
A Measure instance if the class violates the rule BooleanGetMethodN
ame
.
---
creates a measure when a method which returns a boolean has the "get" prefix in its n
ame
rule MeasureBooleanGetMethodName(method: java!MethodDeclaration) {
to
om: smm!ObservedMeasure (
...
...
@@ -2065,7 +2065,7 @@ rule MesureUseAssertTrueInsteadOfAssertEquals(class : java!MethodInvocation) {
}
-- ----------------------------------------- WhileLoopWithLiteralBoolean----------------------------------------------
---
A Measure instance if the class violates the rule WhileLoopWithLiteralBoolean.
---
creates a measure when a while loop or a do loop has a literal boolean which make no sense as condition
rule MeasureWhileLoopWithLiteralBoolean(statement: java!Statement) {
to
om: smm!ObservedMeasure (
...
...
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