Package org.sonar.python.checks
Class AbstractCallExpressionCheck
- java.lang.Object
-
- org.sonar.plugins.python.api.PythonSubscriptionCheck
-
- org.sonar.python.checks.AbstractCallExpressionCheck
-
- All Implemented Interfaces:
PythonCheck,SubscriptionCheck
- Direct Known Subclasses:
CommandLineArgsCheck,EmailSendingCheck,ExpandingArchiveCheck,HashingDataCheck,OsExecCheck,ProcessSignallingCheck,StandardInputCheck
public abstract class AbstractCallExpressionCheck 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
-
-
Constructor Summary
Constructors Constructor Description AbstractCallExpressionCheck()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Set<String>functionsToCheck()protected static <T> Set<T>immutableSet(T... args)voidinitialize(SubscriptionCheck.Context context)protected booleanisException(CallExpression callExpression)protected static booleanisWithinImport(Tree tree)protected abstract Stringmessage()voidvisitNode(SubscriptionContext ctx)-
Methods inherited from class org.sonar.plugins.python.api.PythonSubscriptionCheck
leaveFile, scanFile
-
-
-
-
Method Detail
-
message
protected abstract String message()
-
isException
protected boolean isException(CallExpression callExpression)
-
initialize
public void initialize(SubscriptionCheck.Context context)
-
visitNode
public void visitNode(SubscriptionContext ctx)
-
isWithinImport
protected static boolean isWithinImport(Tree tree)
-
immutableSet
protected static <T> Set<T> immutableSet(T... args)
-
-