failIfAnyRecordFailures();
}
private void checkWarningCountForDetector(Detector detector) throws MojoExecutionException {
File logFile = detector.logFile();
WarningDetector warningDetector = getDetectorById(detector.id());
Collection<WarningRecord> records = warningDetector.getRecords(DybdobMojoUtils.buildProjectVersionFrom(mavenProject), logFile,
mavenProject.getBasedir());
for (WarningRecord record : records) {
if (detector.isCheckEnabled(record.source().getMetric())) {
checkSingleRecord(record, logFile, warningDetector);