use of hudson.plugins.violations.model.Violation in project violations-plugin by jenkinsci.
the class OutputFileModel method createLimited.
private void createLimited() throws IOException {
for (Map.Entry<String, TreeSet<Violation>> e : fileModel.getTypeMap().entrySet()) {
String type = e.getKey();
Set<Violation> violations = e.getValue();
LimitedType limitedType = new LimitedType();
limitedType.number = violations.size();
int c = 0;
for (Violation v : violations) {
limitedType.violations.add(v);
addToVMap(v);
doViolation(v);
c++;
if (c >= config.getLimit()) {
break;
}
}
limitedMap.put(type, limitedType);
}
}
Aggregations