Package org.sonar.python.checks
Class UselessStatementCheck
- java.lang.Object
-
- org.sonar.plugins.python.api.PythonSubscriptionCheck
-
- org.sonar.python.checks.UselessStatementCheck
-
- All Implemented Interfaces:
PythonCheck,SubscriptionCheck
public class UselessStatementCheck extends PythonSubscriptionCheck
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sonar.plugins.python.api.PythonCheck
PythonCheck.PreciseIssue
-
Nested classes/interfaces inherited from interface org.sonar.plugins.python.api.SubscriptionCheck
SubscriptionCheck.Context
-
-
Field Summary
Fields Modifier and Type Field Description StringignoredOperatorsbooleanreportOnStrings
-
Constructor Summary
Constructors Constructor Description UselessStatementCheck()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcheckConditionalExpression(SubscriptionContext ctx)voidinitialize(SubscriptionCheck.Context context)-
Methods inherited from class org.sonar.plugins.python.api.PythonSubscriptionCheck
leaveFile, scanFile
-
-
-
-
Field Detail
-
reportOnStrings
public boolean reportOnStrings
-
ignoredOperators
public String ignoredOperators
-
-
Method Detail
-
initialize
public void initialize(SubscriptionCheck.Context context)
-
checkConditionalExpression
public static void checkConditionalExpression(SubscriptionContext ctx)
-
-