return;
}
+ addViolation(violation, bucket, force);
+ }
+
+ private void addViolation(Violation violation, Bucket bucket, boolean force) {
boolean isIgnored = !force && violationFilters != null && violationFilters.isIgnored(violation);
- if (!isIgnored) {
- addViolation(violation, bucket);
+ if (isIgnored) {
+ return;
}
- }
- private void addViolation(Violation violation, Bucket bucket) {
// TODO this code is not the responsibility of this index. It should be moved somewhere else.
if (!violation.isManual()) {
ActiveRule activeRule = profile.getActiveRule(violation.getRule());
}
}
- doAddViolation(violation, bucket);
- }
-
- private void doAddViolation(Violation violation, Bucket bucket) {
bucket.addViolation(violation);
}