Class LintSuppression

java.lang.Object
com.diffplug.spotless.LintSuppression
All Implemented Interfaces:
Serializable

public class LintSuppression extends Object implements Serializable
See Also:
  • Constructor Details

    • LintSuppression

      public LintSuppression()
  • Method Details

    • getPath

      public String getPath()
    • setPath

      public void setPath(String path)
    • getStep

      public String getStep()
    • setStep

      public void setStep(String step)
    • getShortCode

      public String getShortCode()
    • setShortCode

      public void setShortCode(String shortCode)
    • suppresses

      public boolean suppresses(String relativePath, FormatterStep formatterStep, Lint lint)
    • ensureDoesNotSuppressAll

      public void ensureDoesNotSuppressAll()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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

      @Nullable public static String relativizeAsUnix(File root, File dest)
      Returns the relative path between root and dest, or null if dest is not a child of root. Guaranteed to only have unix-separators.