Class StringReplaceCheck

All Implemented Interfaces:
PythonCheck, SubscriptionCheck

public class StringReplaceCheck extends AbstractRegexCheck
  • Constructor Details

    • StringReplaceCheck

      public StringReplaceCheck()
  • Method Details

    • lookedUpFunctions

      protected Map<String,Integer> lookedUpFunctions()
      Description copied from class: AbstractRegexCheck
      Should 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 to null if there is none.
      Overrides:
      lookedUpFunctions in class AbstractRegexCheck
    • checkRegex

      public void checkRegex(org.sonarsource.analyzer.commons.regex.RegexParseResult regexParseResult, CallExpression callExpression)
      Specified by:
      checkRegex in class AbstractRegexCheck