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 interface
Any exception which implements this interface will have its lints extracted and reported cleanly to the user. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addWarningMessageTo
(StringBuilder buffer, String stepName, boolean oneLine) static Lint
static Lint
atLineRange
(int lineStart, int lineEnd, String shortCode, String detail) static Lint
atUndefinedLine
(String ruleId, String detail) boolean
int
int
int
hashCode()
shortcut()
Returns an exception which will wrap this lint usingLint.Has
static RuntimeException
shortcut
(Collection<Lint> lints) Returns an exception which will wrap all of the given lints usingLint.Has
toString()
-
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
-