Search in sources :

Example 1 with SeverityLevel

use of org.infernus.idea.checkstyle.csapi.SeverityLevel in project checkstyle-idea by jshiell.

the class CheckStyleAuditListener method toIssue.

private Issue toIssue(final AuditEvent auditEvent) {
    String msg = auditEvent.getMessage();
    final SeverityLevel level = readSeverityLevel(auditEvent.getSeverityLevel());
    return new Issue(auditEvent.getFileName(), auditEvent.getLine(), auditEvent.getColumn(), msg, level, auditEvent.getSourceName());
}
Also used : SeverityLevel(org.infernus.idea.checkstyle.csapi.SeverityLevel) Issue(org.infernus.idea.checkstyle.csapi.Issue)

Aggregations

Issue (org.infernus.idea.checkstyle.csapi.Issue)1 SeverityLevel (org.infernus.idea.checkstyle.csapi.SeverityLevel)1