Package org.sonar.javascript.checks
Class ConditionalUnreachableCodeCheck
- java.lang.Object
-
- org.sonar.javascript.se.SeCheck
-
- org.sonar.javascript.checks.AbstractAlwaysTrueOrFalseConditionCheck
-
- org.sonar.javascript.checks.ConditionalUnreachableCodeCheck
-
- All Implemented Interfaces:
JavaScriptCheck
public class ConditionalUnreachableCodeCheck extends AbstractAlwaysTrueOrFalseConditionCheck
-
-
Constructor Summary
Constructors Constructor Description ConditionalUnreachableCodeCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconditionWithDeadCode(Tree condition, boolean isTruthy, Set<Tree> deadCode)Implement this to react (raise an issue, update a metric...) to dead code-
Methods inherited from class org.sonar.javascript.checks.AbstractAlwaysTrueOrFalseConditionCheck
checkConditions, redundantCondition, startOfExecution
-
Methods inherited from class org.sonar.javascript.se.SeCheck
addIssue, addIssue, addLineIssue, afterBlockElement, beforeBlockElement, cleanupAndStartFileAnalysis, endOfExecution, endOfFile, getContext, scanFile, setContext, startOfFile, toString
-
-
-
-
Method Detail
-
conditionWithDeadCode
protected void conditionWithDeadCode(Tree condition, boolean isTruthy, Set<Tree> deadCode)
Description copied from class:AbstractAlwaysTrueOrFalseConditionCheckImplement this to react (raise an issue, update a metric...) to dead code- Overrides:
conditionWithDeadCodein classAbstractAlwaysTrueOrFalseConditionCheck
-
-