Class FindBugsDescriptor

java.lang.Object
edu.hm.hafner.analysis.registry.ParserDescriptor
edu.hm.hafner.analysis.registry.FindBugsDescriptor

public class FindBugsDescriptor extends ParserDescriptor
A descriptor for the FindBugs parser.
Author:
Lorenz Munsch
  • Field Details

    • PRIORITY_OPTION_KEY

      public static final String PRIORITY_OPTION_KEY
      Key to define minimum number of duplicate lines for high priority warnings.
      See Also:
  • Method Details

    • createParser

      public IssueParser createParser(ParserDescriptor.Option... options)
      Description copied from class: ParserDescriptor
      Creates a new IssueParser instance.
      Specified by:
      createParser in class ParserDescriptor
      Parameters:
      options - options to configure the parser - may customize the new parser instance (if supported by the selected tool)
      Returns:
      the parser
    • getPattern

      public String getPattern()
      Description copied from class: ParserDescriptor
      Returns the default filename pattern for this tool. Override if your parser typically works on a specific file. This pattern will be interpreted as an ANT pattern or glob, resp.
      Overrides:
      getPattern in class ParserDescriptor
      Returns:
      the default pattern
    • getDescription

      public String getDescription(Issue issue)
      Description copied from class: ParserDescriptor
      Returns a detailed description of the specified issue. If there is no additional description is available, then an empty String is returned.
      Overrides:
      getDescription in class ParserDescriptor
      Parameters:
      issue - the issue to get the description for
      Returns:
      the description