Class QacSourceCodeAnalyserParser

java.lang.Object
edu.hm.hafner.analysis.IssueParser
edu.hm.hafner.analysis.LookaheadParser
edu.hm.hafner.analysis.parser.QacSourceCodeAnalyserParser
All Implemented Interfaces:
Serializable

public class QacSourceCodeAnalyserParser extends LookaheadParser
A parser for PRQA QA-C Sourcecode Analyser warnings.
Author:
Sven Lübke
See Also:
  • Constructor Details

    • QacSourceCodeAnalyserParser

      public QacSourceCodeAnalyserParser()
      Creates a new instance of QACSourceCodeAnalyserParser.
  • Method Details

    • createIssue

      protected Optional<Issue> createIssue(Matcher matcher, edu.hm.hafner.util.LookaheadStream lookahead, IssueBuilder builder)
      Description copied from class: LookaheadParser
      Creates a new issue for the specified pattern. This method is called for each matching line in the specified file. If a match is a false positive, then return Optional.empty() to ignore this warning.
      Specified by:
      createIssue in class LookaheadParser
      Parameters:
      matcher - the regular expression matcher
      lookahead - the lookahead stream to read additional lines
      builder - the issue builder to use
      Returns:
      a new annotation for the specified pattern