public static interface GrolifantProblemReporter.ProblemSpec
A configurable problem specification.
Currently, it does not support additional data akin to what Gradle 8.13+ offers.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
lineInFileLocation(String path, int line)Declares that this problem is in a file on a line. |
|
public void |
lineInFileLocation(String path, int line, int column)Declares that this problem is in a file with on a line at a certain position. |
|
public void |
lineInFileLocation(String path, int line, int column, int length)Declares that this problem is in a file with on a line at a certain position. |
|
public void |
offsetInFileLocation(String path, int offset, int length)Declares that this problem is in a file at a certain global position with a given length. |
|
public void |
setContextualLabel(String contextualLabel)Declares a short, but context-dependent message for this problem. |
|
public void |
setDetails(String txt)Declares a long description detailing the problem. |
|
public void |
setDocumentedAt(String url)Declares where this problem is documented. |
|
public void |
setFileLocation(String path)Declares that this problem is in a file. |
|
public void |
setSeverity(Severity severity)Declares the severity of the problem. |
|
public void |
setSeverity(String severity)Declares the severity of the problem. |
|
public void |
setSolution(String description)Declares solutions and advice that contain context-sensitive data. |
|
public void |
stackLocation()Declares that this problem is at the same place where it's reported. |
|
public void |
withException(Throwable t)Declares the exception causing this problem. |
Declares that this problem is in a file on a line.
path - File pathline - Line numberDeclares that this problem is in a file with on a line at a certain position.
path - File pathline - Line numbercolumn - Column startDeclares that this problem is in a file with on a line at a certain position.
path - File pathline - Line numbercolumn - Column startlength - Length of textDeclares that this problem is in a file at a certain global position with a given length.
path - File pathoffset - File offsetlength - Problem lengthDeclares a short, but context-dependent message for this problem.
contextualLabel - Contextual message.Declares a long description detailing the problem.
txt - Details.Declares where this problem is documented.
url - Documentation url.Declares that this problem is in a file.
path - File pathDeclares the severity of the problem.
severity - SeverityDeclares the severity of the problem.
severity - SeverityDeclares solutions and advice that contain context-sensitive data.
description - SolutionDeclares that this problem is at the same place where it's reported.
Could be a no NOOP on older versoins of Gradle.
Declares the exception causing this problem.
t - Exception