Class AbstractRegexCheck

    • Field Detail

      • reportedRegexTrees

        protected final Set<org.sonarsource.analyzer.commons.regex.ast.RegexSyntaxElement> reportedRegexTrees
    • Constructor Detail

      • AbstractRegexCheck

        public AbstractRegexCheck()
    • Method Detail

      • lookedUpFunctions

        protected Map<String,​Integer> lookedUpFunctions()
        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.
      • checkRegex

        public abstract void checkRegex​(org.sonarsource.analyzer.commons.regex.RegexParseResult regexParseResult,
                                        CallExpression regexFunctionCall)
      • addIssue

        public void addIssue​(org.sonarsource.analyzer.commons.regex.ast.RegexSyntaxElement regexTree,
                             String message,
                             @Nullable
                             Integer cost,
                             List<org.sonarsource.analyzer.commons.regex.RegexIssueLocation> secondaries)