use of org.sonar.plugins.java.api.JavaCheck in project sonar-java by SonarSource.
the class SonarComponents method reportIssue.
public void reportIssue(AnalyzerMessage analyzerMessage) {
JavaCheck check = analyzerMessage.getCheck();
Preconditions.checkNotNull(check);
Preconditions.checkNotNull(analyzerMessage.getMessage());
RuleKey key = getRuleKey(check);
if (key == null) {
return;
}
File file = analyzerMessage.getFile();
InputPath inputPath = inputPathFromIOFile(file);
if (inputPath == null) {
return;
}
Double cost = analyzerMessage.getCost();
reportIssue(analyzerMessage, key, inputPath, cost);
}
Aggregations