Java Code Examples for com.puppycrawl.tools.checkstyle.api.SeverityLevel#IGNORE

The following examples show how to use com.puppycrawl.tools.checkstyle.api.SeverityLevel#IGNORE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AssertionsAuditListener.java    From nohttp with Apache License 2.0 5 votes vote down vote up
@Override
public void addError(AuditEvent event) {
	recordLevel(event);
	if (event.getSeverityLevel() != SeverityLevel.IGNORE) {
		recordMessage(FORMATTER.format(event));
	}
}
 
Example 2
Source File: AssertionsAuditListener.java    From spring-javaformat with Apache License 2.0 5 votes vote down vote up
@Override
public void addError(AuditEvent event) {
	recordLevel(event);
	if (event.getSeverityLevel() != SeverityLevel.IGNORE) {
		recordMessage(FORMATTER.format(event));
	}
}
 
Example 3
Source File: CoderadarAuditListener.java    From coderadar with MIT License 5 votes vote down vote up
@Override
public void addError(AuditEvent evt) {
  if (evt.getSeverityLevel() != SeverityLevel.IGNORE) {
    Metric metric = new Metric("checkstyle:" + evt.getSourceName());
    Finding finding =
        new Finding(
            evt.getLine(), evt.getLine(), evt.getColumn(), evt.getColumn(), evt.getMessage());
    Long metricCount = metricCountExtractor.extractMetricCount(evt);
    metrics.addFinding(metric, finding, metricCount);
  }
}