Commit c563aed2 authored by Nicolas Vannier's avatar Nicolas Vannier
Browse files

Correction on comments

parent 987fed82
......@@ -204,8 +204,8 @@ rule MeasureAbstractClassWithoutAnyMethod(i : java!ClassDeclaration) {
}
}
--------------------------------------------- ArrayIsStoredDirectly ---------------------------------------------
-- creates a measure when an array parameter of a method is directly used as a reference instead of storing it first
-- ------------------------------------------- ArrayIsStoredDirectly ---------------------------------------------
--- creates a measure when an array parameter of a method is directly used as a reference instead of storing it first
rule MeasureArrayIsStoredDirectly(s: java!MethodDeclaration){
to
om: smm!ObservedMeasure (
......@@ -304,8 +304,8 @@ rule MeasureAvoidEnumAsIdentifier(w: java!VariableDeclaration) {
}
}
--------------------------------------------- AvoidInstantiatingObjectInLoops ---------------------------------------------
-- creates a measure when an object is instantiated in a loop
-- ------------------------------------------- AvoidInstantiatingObjectInLoops ---------------------------------------------
--- creates a measure when an object is instantiated in a loop
rule MeasureAvoidInstantiatingObjectInLoops(s: java!Statement){
to
om: smm!ObservedMeasure (
......@@ -1095,8 +1095,8 @@ rule MeasureImportFromSamePackage(import : java!ImportDeclaration) {
}
}
------------------------------------------- InefficientEmptyStringCheck ----------------------------------------------
-- creates a measure when String.trim().isEmpty() is used to check if a string is empty
-- ----------------------------------------- InefficientEmptyStringCheck ----------------------------------------------
--- creates a measure when String.trim().isEmpty() is used to check if a string is empty
rule MeasureInefficientEmptyStringCheck(mi: java!Expression){
to
om: smm!ObservedMeasure (
......@@ -1237,8 +1237,8 @@ rule MeasureMisLeadingVariableName(variable :java!VariableDeclarationFragment) {
}
}
------------------------------------------- OneDeclarationPerLine ----------------------------------------------
-- creates a measure when several variables are declared on the same line
-- ----------------------------------------- OneDeclarationPerLine ----------------------------------------------
--- creates a measure when several variables are declared on the same line
rule MeasureOneDeclarationPerLine(s: java!VariableDeclarationStatement){
to
om: smm!ObservedMeasure (
......@@ -1378,8 +1378,8 @@ rule MeasureSuspiciousEqualsMethodName(method : java!MethodDeclaration) {
}
}
--------------------------------------------- SuspiciousHashcodeMethodName ---------------------------------------------
-- creates a measure when a method name is close to "hashCode" but not equal to "hashCode"
-- ------------------------------------------- SuspiciousHashcodeMethodName ---------------------------------------------
--- creates a measure when a method name is close to "hashCode" but not equal to "hashCode"
rule MeasureSuspiciousHashcodeMethodName(s: java!MethodDeclaration){
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