Commit ce603ed2 authored by ArthuurT's avatar ArthuurT
Browse files

update comments in analysis.atl

parent 65ea6477
......@@ -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 BooleanGetMethodName.
--- creates a measure when a method which returns a boolean has the "get" prefix in its name
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 (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment