Package org.sonar.python.checks.regex
Class MultipleWhitespaceCheck
- java.lang.Object
-
- org.sonar.plugins.python.api.PythonSubscriptionCheck
-
- org.sonar.python.checks.regex.AbstractRegexCheck
-
- org.sonar.python.checks.regex.MultipleWhitespaceCheck
-
- All Implemented Interfaces:
PythonCheck,SubscriptionCheck
public class MultipleWhitespaceCheck extends AbstractRegexCheck
-
-
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 static StringQUICK_FIX_FORMAT-
Fields inherited from class org.sonar.python.checks.regex.AbstractRegexCheck
regexContext, reportedRegexTrees
-
-
Constructor Summary
Constructors Constructor Description MultipleWhitespaceCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PythonCheck.PreciseIssueaddIssue(org.sonarsource.analyzer.commons.regex.ast.RegexSyntaxElement regexTree, String message, Integer cost, List<org.sonarsource.analyzer.commons.regex.RegexIssueLocation> secondaries)voidcheckRegex(org.sonarsource.analyzer.commons.regex.RegexParseResult regexParseResult, CallExpression regexFunctionCall)-
Methods inherited from class org.sonar.python.checks.regex.AbstractRegexCheck
initialize, lookedUpFunctions, mapPythonFlag
-
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
scanWithoutParsing, scope
-
-
-
-
Field Detail
-
QUICK_FIX_FORMAT
public static final String QUICK_FIX_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkRegex
public void checkRegex(org.sonarsource.analyzer.commons.regex.RegexParseResult regexParseResult, CallExpression regexFunctionCall)- Specified by:
checkRegexin classAbstractRegexCheck
-
addIssue
public PythonCheck.PreciseIssue addIssue(org.sonarsource.analyzer.commons.regex.ast.RegexSyntaxElement regexTree, String message, @Nullable Integer cost, List<org.sonarsource.analyzer.commons.regex.RegexIssueLocation> secondaries)
- Overrides:
addIssuein classAbstractRegexCheck
-
-