|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Beta public interface Issue
Represents an issue detected by a Sensor
.
Nested Class Summary | |
---|---|
static class |
Issue.Severity
|
Method Summary | |
---|---|
Issue |
atLine(int line)
Line of the issue. |
Double |
effortToFix()
Effort to fix the issue. |
Issue |
effortToFix(Double effortToFix)
Effort to fix the issue. |
InputPath |
inputPath()
The InputPath this issue belongs to. |
Integer |
line()
Line of the issue. |
String |
message()
Message of the issue. |
Issue |
message(String message)
Message of the issue. |
Issue |
onDir(InputDir inputDir)
The InputDir the issue belongs to. |
Issue |
onFile(InputFile file)
The InputFile the issue belongs to. |
Issue |
onProject()
Tell that the issue is global to the project. |
Issue.Severity |
overridenSeverity()
Overriden severity. |
Issue |
overrideSeverity(Issue.Severity severity)
Override severity of the issue. |
RuleKey |
ruleKey()
The RuleKey of this issue. |
Issue |
ruleKey(RuleKey ruleKey)
The RuleKey of the issue. |
void |
save()
Save the issue. |
Method Detail |
---|
Issue ruleKey(RuleKey ruleKey)
RuleKey
of the issue.
RuleKey ruleKey()
RuleKey
of this issue.
Issue onFile(InputFile file)
InputFile
the issue belongs to. For global issues call onProject()
.
Issue onDir(InputDir inputDir)
InputDir
the issue belongs to. For global issues call onProject()
.
Issue onProject()
@CheckForNull InputPath inputPath()
InputPath
this issue belongs to. Returns null if issue is global to the project.
Issue atLine(int line)
onFile(InputFile)
issues.
If no line is specified it means that issue is global to the file.
@CheckForNull Integer line()
Issue effortToFix(@Nullable Double effortToFix)
@CheckForNull Double effortToFix()
Issue message(String message)
@CheckForNull String message()
Issue overrideSeverity(@Nullable Issue.Severity severity)
@CheckForNull Issue.Severity overridenSeverity()
void save()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |