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
public class StringFormatCorrectnessCheck extends AbstractStringFormatCheck
-
-
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
-
-
Field Summary
-
Fields inherited from class org.sonar.python.checks.AbstractStringFormatCheck
IGNORE_SYNTAX_ERRORS
-
-
Constructor Summary
Constructors Constructor Description StringFormatCorrectnessCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, syntaxIssueReporter
-
Methods inherited from class org.sonar.plugins.python.api.PythonSubscriptionCheck
leaveFile, scanFile
-
-
-
-
Method Detail
-
initialize
public void initialize(SubscriptionCheck.Context context)
-
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
-
-