org.sonar.api.batch.sensor.issue
Interface Issue

All Known Implementing Classes:
DefaultIssue

@Beta
public interface Issue

Issue reported by an Sensor

Since:
4.4

Method Summary
 Double effortToFix()
          Effort to fix the issue.
 InputPath inputPath()
          The InputPath this issue belongs to.
 Integer line()
          Line of the issue.
 String message()
          Message of the issue.
 RuleKey ruleKey()
          The RuleKey of this issue.
 String severity()
          See constants in Severity.
 

Method Detail

inputPath

@CheckForNull
InputPath inputPath()
The InputPath this issue belongs to. Returns null if issue is global to the project.


ruleKey

RuleKey ruleKey()
The RuleKey of this issue.


message

@CheckForNull
String message()
Message of the issue.


line

@CheckForNull
Integer line()
Line of the issue. Null for global issues and issues on directories. Can also be null for files (issue global to the file).


effortToFix

@CheckForNull
Double effortToFix()
Effort to fix the issue. Used by technical debt model.


severity

@CheckForNull
String severity()
See constants in Severity. Can be null before issue is saved. Means to use severity configured in quality profile.



Copyright © 2009–2014 SonarSource. All rights reserved.