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
  • Constructor Details

    • AbstractCallExpressionCheck

      public AbstractCallExpressionCheck()
  • Method Details

    • functionsToCheck

      protected abstract Set<String> functionsToCheck()
    • 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)