Package org.sonar.api.batch.sensor.issue
Interface NewExternalIssue
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description NewExternalIssueaddFlow(java.lang.Iterable<NewIssueLocation> flowLocations)Register a flow for this issue.NewExternalIssueaddImpact(SoftwareQuality softwareQuality, Severity severity)Add a new impact or override the severity of an impact already defined by the rule.NewExternalIssueaddLocation(NewIssueLocation secondaryLocation)Add a secondary location for this issue.NewExternalIssueat(NewIssueLocation primaryLocation)Primary location for this issue.NewExternalIssuecleanCodeAttribute(CleanCodeAttribute attribute)Attribute of the issue according to Clean Code Taxonomy.NewExternalIssueengineId(java.lang.String engineId)Unique identifier of the external analyzer (e.g.NewExternalIssueforRule(RuleKey ruleKey)Deprecated.since 7.4.NewIssueLocationnewLocation()Create a new location for this issue.NewExternalIssueremediationEffortMinutes(java.lang.Long effortInMinutes)Effort to fix the issue, in minutes.NewExternalIssueruleId(java.lang.String ruleId)Unique rule identifier for a givenengineId(String)voidsave()Save the issue.NewExternalIssueseverity(Severity severity)Deprecated.since 10.1, use {@link #addImpact(SoftwareQuality softwareQuality, org.sonar.api.issue.impact.Severity severity)()} insteadNewExternalIssuetype(RuleType type)Deprecated.since 10.1, use {@link #addImpact(SoftwareQuality softwareQuality, org.sonar.api.issue.impact.Severity severity)()} instead
 
- 
- 
- 
Method Detail- 
forRule@Deprecated NewExternalIssue forRule(RuleKey ruleKey) Deprecated.since 7.4. It is misleading, because of the "external_" prefix that is added on server side. UseengineId(String)andruleId(String)TheRuleKeyof the issue.
 - 
engineIdNewExternalIssue engineId(java.lang.String engineId) Unique identifier of the external analyzer (e.g. eslint, pmd, ...)- Since:
- 7.4
 
 - 
ruleIdNewExternalIssue ruleId(java.lang.String ruleId) Unique rule identifier for a givenengineId(String)- Since:
- 7.4
 
 - 
type@Deprecated(since="10.1") NewExternalIssue type(RuleType type) Deprecated.since 10.1, use {@link #addImpact(SoftwareQuality softwareQuality, org.sonar.api.issue.impact.Severity severity)()} insteadType of issue.
 - 
cleanCodeAttribute@Beta NewExternalIssue cleanCodeAttribute(CleanCodeAttribute attribute) Attribute of the issue according to Clean Code Taxonomy. Providing it is optional for now but will become mandatory in the future. This method is experimental and might change in the future.- Since:
- 10.1
 
 - 
remediationEffortMinutesNewExternalIssue remediationEffortMinutes(@Nullable java.lang.Long effortInMinutes) Effort to fix the issue, in minutes.
 - 
severity@Deprecated(since="10.1") NewExternalIssue severity(Severity severity) Deprecated.since 10.1, use {@link #addImpact(SoftwareQuality softwareQuality, org.sonar.api.issue.impact.Severity severity)()} insteadSet the severity of the issue.
 - 
addImpact@Beta NewExternalIssue addImpact(SoftwareQuality softwareQuality, Severity severity) Add a new impact or override the severity of an impact already defined by the rule. It is only possible to define a default impact for a givenSoftwareQualityThis method is experimental and might change in the future.- Since:
- 10.1
 
 - 
atNewExternalIssue at(NewIssueLocation primaryLocation) Primary location for this issue.
 - 
addLocationNewExternalIssue addLocation(NewIssueLocation secondaryLocation) Add a secondary location for this issue. Several secondary locations can be registered.
 - 
addFlowNewExternalIssue addFlow(java.lang.Iterable<NewIssueLocation> flowLocations) Register a flow for this issue. A flow is an ordered list of issue locations that help to understand the issue. It should be a path that backtracks the issue from its primary location to the start of the flow. Several flows can be registered.
 - 
newLocationNewIssueLocation newLocation() Create a new location for this issue. First registered location is considered as primary location.
 - 
savevoid save() Save the issue. If rule key is unknown or rule not enabled in the current quality profile then a warning is logged but no exception is thrown.
 
- 
 
-