1 /**
2 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 */
4 package net.sourceforge.pmd;
5
6 import net.sourceforge.pmd.stat.Metric;
7
8 /**
9 * Listener to be informed about found violations.
10 * Note: Suppressed violations are not reported to this listener.
11 */
12 public interface ReportListener {
13 /**
14 * A new violation has been found.
15 * @param ruleViolation the found violation.
16 */
17 void ruleViolationAdded(RuleViolation ruleViolation);
18
19 /**
20 * A new metric point has been reported.
21 * @param metric the metric
22 */
23 void metricAdded(Metric metric);
24 }