@Beta public interface IssueBuilder
Issue
.Modifier and Type | Method and Description |
---|---|
IssueBuilder |
atLine(int line)
Line of the issue.
|
Issue |
build()
Build the issue.
|
IssueBuilder |
effortToFix(Double effortToFix)
Effort to fix the issue.
|
IssueBuilder |
message(String message)
Message of the issue.
|
IssueBuilder |
onDir(InputDir inputDir)
The
InputDir the issue belongs to. |
IssueBuilder |
onFile(InputFile file)
The
InputFile the issue belongs to. |
IssueBuilder |
onProject()
Tell that the issue is global to the project.
|
IssueBuilder |
ruleKey(RuleKey ruleKey)
The
RuleKey of the issue. |
IssueBuilder |
severity(String severity)
Severity of the issue.
|
IssueBuilder ruleKey(RuleKey ruleKey)
RuleKey
of the issue.IssueBuilder onFile(InputFile file)
InputFile
the issue belongs to. For global issues call onProject()
.IssueBuilder onDir(InputDir inputDir)
InputDir
the issue belongs to. For global issues call onProject()
.IssueBuilder onProject()
IssueBuilder atLine(int line)
onFile(InputFile)
issues.
If no line is specified it means that issue is global to the file.IssueBuilder effortToFix(@Nullable Double effortToFix)
IssueBuilder message(String message)
IssueBuilder severity(@Nullable String severity)
Severity
.
Setting a null value means to use severity configured in quality profile.Copyright © 2009–2015 SonarSource. All rights reserved.