• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*******************************************************************************
2  * Copyright (c) 2009, 2018 Mountainminds GmbH & Co. KG and Contributors
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  *    Marc R. Hoffmann - initial API and implementation
10  *
11  *******************************************************************************/
12 package org.jacoco.report.check;
13 
14 import org.jacoco.core.analysis.ICoverageNode;
15 
16 /**
17  * Call-back interface which is used to report rule violations to.
18  *
19  */
20 public interface IViolationsOutput {
21 
22 	/**
23 	 * Called for every rule violation.
24 	 *
25 	 * @param node
26 	 *            node which violates a rule
27 	 * @param rule
28 	 *            rule which is violated
29 	 * @param limit
30 	 *            limit which is violated
31 	 * @param message
32 	 *            readable message describing this violation
33 	 */
onViolation(ICoverageNode node, Rule rule, Limit limit, String message)34 	void onViolation(ICoverageNode node, Rule rule, Limit limit, String message);
35 
36 }
37