|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.api.batch.sensor.issue.internal.DefaultIssueBuilder
public class DefaultIssueBuilder
| Constructor Summary | |
|---|---|
DefaultIssueBuilder()
|
|
| Method Summary | |
|---|---|
DefaultIssueBuilder |
atLine(int line)
Line of the issue. |
DefaultIssue |
build()
Build the issue. |
DefaultIssueBuilder |
effortToFix(Double effortToFix)
Effort to fix the issue. |
DefaultIssueBuilder |
message(String message)
Message of the issue. |
DefaultIssueBuilder |
onDir(InputDir dir)
The InputDir the issue belongs to. |
DefaultIssueBuilder |
onFile(InputFile file)
The InputFile the issue belongs to. |
DefaultIssueBuilder |
onProject()
Tell that the issue is global to the project. |
DefaultIssueBuilder |
ruleKey(RuleKey ruleKey)
The RuleKey of the issue. |
IssueBuilder |
severity(String severity)
Severity of the issue. |
DefaultIssueBuilder |
withKey(String key)
For testing only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultIssueBuilder()
| Method Detail |
|---|
public DefaultIssueBuilder ruleKey(RuleKey ruleKey)
IssueBuilderRuleKey of the issue.
ruleKey in interface IssueBuilderpublic DefaultIssueBuilder onFile(InputFile file)
IssueBuilderInputFile the issue belongs to. For global issues call IssueBuilder.onProject().
onFile in interface IssueBuilderpublic DefaultIssueBuilder onDir(InputDir dir)
IssueBuilderInputDir the issue belongs to. For global issues call IssueBuilder.onProject().
onDir in interface IssueBuilderpublic DefaultIssueBuilder onProject()
IssueBuilder
onProject in interface IssueBuilderpublic DefaultIssueBuilder atLine(int line)
IssueBuilderIssueBuilder.onFile(InputFile) issues.
If no line is specified it means that issue is global to the file.
atLine in interface IssueBuilder
public DefaultIssueBuilder effortToFix(@Nullable
Double effortToFix)
IssueBuilder
effortToFix in interface IssueBuilderpublic DefaultIssueBuilder message(String message)
IssueBuilder
message in interface IssueBuilder
public IssueBuilder severity(@Nullable
String severity)
IssueBuilderSeverity.
Setting a null value means to use severity configured in quality profile.
severity in interface IssueBuilderpublic DefaultIssueBuilder withKey(String key)
public DefaultIssue build()
IssueBuilder
build in interface IssueBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||