@Beta public interface NewIssue
Sensor
.Modifier and Type | Method and Description |
---|---|
NewIssue |
atLine(int line)
Line of the issue.
|
NewIssue |
effortToFix(Double effortToFix)
Effort to fix the issue.
|
NewIssue |
forRule(RuleKey ruleKey)
The
RuleKey of the issue. |
NewIssue |
message(String message)
Message of the issue.
|
NewIssue |
onDir(InputDir inputDir)
The
InputDir the issue belongs to. |
NewIssue |
onFile(InputFile file)
The
InputFile the issue belongs to. |
NewIssue |
onProject()
Tell that the issue is global to the project.
|
NewIssue |
overrideSeverity(Issue.Severity severity)
Override severity of the issue.
|
void |
save()
Save the issue.
|
NewIssue onFile(InputFile file)
InputFile
the issue belongs to. For global issues call onProject()
.NewIssue onDir(InputDir inputDir)
InputDir
the issue belongs to. For global issues call onProject()
.NewIssue atLine(int line)
onFile(InputFile)
issues.
If no line is specified it means that issue is global to the file.NewIssue effortToFix(@Nullable Double effortToFix)
NewIssue overrideSeverity(@Nullable Issue.Severity severity)
void save()
Copyright © 2009–2015 SonarSource. All rights reserved.