|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
IssueBuilder
RuleKey
of the issue.
ruleKey
in interface IssueBuilder
public DefaultIssueBuilder onFile(InputFile file)
IssueBuilder
InputFile
the issue belongs to. For global issues call IssueBuilder.onProject()
.
onFile
in interface IssueBuilder
public DefaultIssueBuilder onDir(InputDir dir)
IssueBuilder
InputDir
the issue belongs to. For global issues call IssueBuilder.onProject()
.
onDir
in interface IssueBuilder
public DefaultIssueBuilder onProject()
IssueBuilder
onProject
in interface IssueBuilder
public DefaultIssueBuilder atLine(int line)
IssueBuilder
IssueBuilder.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 IssueBuilder
public DefaultIssueBuilder message(String message)
IssueBuilder
message
in interface IssueBuilder
public IssueBuilder severity(@Nullable String severity)
IssueBuilder
Severity
.
Setting a null value means to use severity configured in quality profile.
severity
in interface IssueBuilder
public 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 |