Package org.sonar.python.checks
Class StringFormatCorrectnessCheck
java.lang.Object
org.sonar.plugins.python.api.PythonSubscriptionCheck
org.sonar.python.checks.AbstractStringFormatCheck
org.sonar.python.checks.StringFormatCorrectnessCheck
- 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 inherited from class org.sonar.python.checks.AbstractStringFormatCheck
IGNORE_SYNTAX_ERRORS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckPrintfStyle(SubscriptionContext ctx, BinaryExpression modulo, StringLiteral literal) protected voidcheckStrFormatStyle(SubscriptionContext ctx, CallExpression callExpression, Expression qualifier, StringLiteral literal) voidinitialize(SubscriptionCheck.Context context) Methods inherited from class org.sonar.python.checks.AbstractStringFormatCheck
checkPrintfDictionary, checkPrintfExpressionList, checkPrintfStyle, checkStrFormatStyle, extractStringLiteral, isMapping, isQualifiedCallToStrFormat, reportInvalidArgumentSize, reportIssue, syntaxIssueReporterMethods 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
-
Constructor Details
-
StringFormatCorrectnessCheck
public StringFormatCorrectnessCheck()
-
-
Method Details
-
initialize
-
checkPrintfStyle
protected void checkPrintfStyle(SubscriptionContext ctx, BinaryExpression modulo, StringLiteral literal) - Specified by:
checkPrintfStylein classAbstractStringFormatCheck
-
checkStrFormatStyle
protected void checkStrFormatStyle(SubscriptionContext ctx, CallExpression callExpression, Expression qualifier, StringLiteral literal) - Specified by:
checkStrFormatStylein classAbstractStringFormatCheck
-