Package org.sonar.python.checks.cdk
Class AbstractS3BucketCheck
- java.lang.Object
-
- org.sonar.plugins.python.api.PythonSubscriptionCheck
-
- org.sonar.python.checks.cdk.AbstractS3BucketCheck
-
- All Implemented Interfaces:
PythonCheck,SubscriptionCheck
- Direct Known Subclasses:
S3BucketBlockPublicAccessCheck,S3BucketGrantedAccessCheck,S3BucketServerEncryptionCheck,S3BucketVersioningCheck
public abstract class AbstractS3BucketCheck extends PythonSubscriptionCheck
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sonar.plugins.python.api.PythonCheck
PythonCheck.CheckScope, PythonCheck.PreciseIssue
-
Nested classes/interfaces inherited from interface org.sonar.plugins.python.api.SubscriptionCheck
SubscriptionCheck.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringS3_BUCKET_FQN
-
Constructor Summary
Constructors Constructor Description AbstractS3BucketCheck()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Optional<org.sonar.python.checks.cdk.AbstractS3BucketCheck.ArgumentTrace>getArgument(SubscriptionContext ctx, CallExpression callExpression, String argumentName)voidinitialize(SubscriptionCheck.Context context)protected static booleanisFalse(Expression expression)protected voidvisitNode(SubscriptionContext ctx)-
Methods inherited from class org.sonar.plugins.python.api.PythonSubscriptionCheck
leaveFile, scanFile
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.plugins.python.api.PythonCheck
scope
-
-
-
-
Field Detail
-
S3_BUCKET_FQN
protected static final String S3_BUCKET_FQN
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(SubscriptionCheck.Context context)
-
visitNode
protected void visitNode(SubscriptionContext ctx)
-
getArgument
protected static Optional<org.sonar.python.checks.cdk.AbstractS3BucketCheck.ArgumentTrace> getArgument(SubscriptionContext ctx, CallExpression callExpression, String argumentName)
-
isFalse
protected static boolean isFalse(Expression expression)
-
-