A lint error representation. Uses the Builder pattern for its optional parameters.
It knows about which rule was violated and the file that violated it. It may have other
information, like the line number in which the violation was found, an error message,
an Exception relating to its violation, and a custom severity.
The file that failed the validation.
parameters. This constructor should be used when chaining multiple
parameters, i.e. line number and error message and exception, and is finalized by calling
LintError lintError = LintError.with(this, file).andLineNumber(lineNumber).andErrorMessage(
"You forgot to do something!").create();
Adds an associated error message to the error. This message is printed in the reports if available.
Adds an associated line number to the error. This is printed in the reports if available.
Specifies a custom severity for this error.
for this builder. Should be called
when all the optional arguments are provided.