Package org.sonar.python.checks.tests
Class AssertAfterRaiseCheck
java.lang.Object
org.sonar.plugins.python.api.PythonSubscriptionCheck
org.sonar.python.checks.tests.AssertAfterRaiseCheck
- All Implemented Interfaces:
PythonCheck,SubscriptionCheck
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.sonar.plugins.python.api.PythonCheck
PythonCheck.CheckScope, PythonCheck.PreciseIssueNested classes/interfaces inherited from interface org.sonar.plugins.python.api.SubscriptionCheck
SubscriptionCheck.Context -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(SubscriptionCheck.Context context) booleanisAnAssert(Statement statement) booleanisNotAssertionErrorArgument(RegularArgument regularArgument) booleanisUnittestAssert(QualifiedExpression callee) booleanisValidPytestRaise(CallExpression callExpression) booleanisValidUnittestRaise(CallExpression callExpression) booleanisWithStatementItemARaise(WithStatement withStatement) Methods inherited from class org.sonar.plugins.python.api.PythonSubscriptionCheck
leaveFile, scanFileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sonar.plugins.python.api.PythonCheck
scanWithoutParsing, scope
-
Field Details
-
QUICK_FIX_MESSAGE
- See Also:
-
-
Constructor Details
-
AssertAfterRaiseCheck
public AssertAfterRaiseCheck()
-
-
Method Details
-
initialize
-
isWithStatementItemARaise
-
isValidPytestRaise
-
isValidUnittestRaise
-
isNotAssertionErrorArgument
-
isAnAssert
-
isUnittestAssert
-