Package com.diffplug.spotless
Class Lint
java.lang.Object
com.diffplug.spotless.Lint
- All Implemented Interfaces:
Serializable
Models a linted line or line range. Note that there is no concept of severity level - responsibility
for severity and confidence are pushed down to the configuration of the lint tool. If a lint makes it
to Spotless, then it is by definition.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAny exception which implements this interface will have its lints extracted and reported cleanly to the user. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWarningMessageTo(StringBuilder buffer, String stepName, boolean oneLine) static Lintstatic LintatLineRange(int lineStart, int lineEnd, String shortCode, String detail) static LintatUndefinedLine(String ruleId, String detail) booleanintintinthashCode()shortcut()Returns an exception which will wrap this lint usingLint.Hasstatic RuntimeExceptionshortcut(Collection<Lint> lints) Returns an exception which will wrap all of the given lints usingLint.HastoString()
-
Field Details
-
LINE_UNDEFINED
public static final int LINE_UNDEFINED- See Also:
-
-
Method Details
-
atUndefinedLine
-
atLine
-
atLineRange
-
getLineStart
public int getLineStart() -
getLineEnd
public int getLineEnd() -
getShortCode
-
getDetail
-
shortcut
Returns an exception which will wrap all of the given lints usingLint.Has -
shortcut
Returns an exception which will wrap this lint usingLint.Has -
toString
-
equals
-
hashCode
public int hashCode() -
addWarningMessageTo
-