Package org.sonar.python.checks.regex
Class GroupReplacementCheck
java.lang.Object
org.sonar.plugins.python.api.PythonSubscriptionCheck
org.sonar.python.checks.regex.AbstractRegexCheck
org.sonar.python.checks.regex.GroupReplacementCheck
- 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.regex.AbstractRegexCheck
regexContext, reportedRegexTrees -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckRegex(org.sonarsource.analyzer.commons.regex.RegexParseResult regexParseResult, CallExpression regexFunctionCall) Should return a map whose keys are the functions the check is interested in, and the values are the position of the flags parameter.Methods inherited from class org.sonar.python.checks.regex.AbstractRegexCheck
addIssue, initialize, mapPythonFlagMethods 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
-
GroupReplacementCheck
public GroupReplacementCheck()
-
-
Method Details
-
lookedUpFunctions
Description copied from class:AbstractRegexCheckShould return a map whose keys are the functions the check is interested in, and the values are the position of the flags parameter. Set the position of the flags parameter tonullif there is none.- Overrides:
lookedUpFunctionsin classAbstractRegexCheck
-
checkRegex
public void checkRegex(org.sonarsource.analyzer.commons.regex.RegexParseResult regexParseResult, CallExpression regexFunctionCall) - Specified by:
checkRegexin classAbstractRegexCheck
-