Commit 21a10dd2 authored by Ronan GUEGUEN's avatar Ronan GUEGUEN
Browse files

correction

parent 21ec2c22
...@@ -94,17 +94,8 @@ helper def: useAssertSameInsteadOfAssertTrue() : Set(smm!Measure) = ...@@ -94,17 +94,8 @@ helper def: useAssertSameInsteadOfAssertTrue() : Set(smm!Measure) =
helper def: isWrongUseAssertSameInsteadOfAssertTrue(m:java!MethodInvocation) : Boolean = helper def: isWrongUseAssertSameInsteadOfAssertTrue(m:java!MethodInvocation) : Boolean =
--Browse through all arguments of the method assertTrue and see if == is used --Browse through all arguments of the method assertTrue and see if == is used
(m.arguments->select(t|t.oclIsTypeOf(java!InfixExpression))->select(t|t.operator.toString() = '==')->collect(t|t).notEmpty()) (m.arguments->select(t|t.oclIsTypeOf(java!InfixExpression))->select(t|t.operator.toString() = '==')->collect(t|t).notEmpty());
;
----------------------------------------------UnusedLocalVariable----------------------------------------------------
helper def: unusedLocalVariable(): Set(smm!Measure) =
java!VariableDeclarationFragment.allInstances()
-> reject(variable | variable.usageInVariableAccess.isEmpty())
-> collect(variable | thisModule.MeasureUnusedLocalVariable(variable))
;
--------------------------------------------- ForLoopVariableCount --------------------------------------------- --------------------------------------------- ForLoopVariableCount ---------------------------------------------
-- Rule for metrics ForLoopVariableCount -- Rule for metrics ForLoopVariableCount
......
Supports Markdown
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