Class Defect.Default

java.lang.Object
org.eolang.lints.Defect.Default
All Implemented Interfaces:
Defect
Enclosing interface:
Defect

public static final class Defect.Default extends Object implements Defect
Default.
Since:
0.0.1
  • Constructor Details

    • Default

      public Default(String rule, Severity severity, int line, String text)
      Ctor.
      Parameters:
      rule - Rule
      severity - Severity
      line - Line number
      text - Description of the defect
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • rule

      public String rule()
      Description copied from interface: Defect
      Rule.
      Specified by:
      rule in interface Defect
      Returns:
      Unique name of the rule
    • severity

      public Severity severity()
      Description copied from interface: Defect
      Severity.
      Specified by:
      severity in interface Defect
      Returns:
      Severity
    • line

      public int line()
      Description copied from interface: Defect
      Line where it was found.
      Specified by:
      line in interface Defect
      Returns:
      Line number
    • text

      public String text()
      Description copied from interface: Defect
      Error message.
      Specified by:
      text in interface Defect
      Returns:
      Text