
edu.hm.hafner.analysis.parser.ccm.Ccm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of analysis-model Show documentation
Show all versions of analysis-model Show documentation
This library provides a Java object model to read, aggregate, filter, and query static analysis reports.
It is used by Jenkins' warnings next generation plug-in to visualize the warnings of individual builds.
Additionally, this library is used by a GitHub action to autograde student software projects based on a given set of
metrics (unit tests, code and mutation coverage, static analysis warnings).
package edu.hm.hafner.analysis.parser.ccm;
import java.util.ArrayList;
import java.util.List;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
/**
* Entity used by {@link CcmParser} to represent the root node of CCM results file.
*
* @author Bruno P. Kinoshita - http://www.kinoshita.eti.br
* @since 1.0
*/
@SuppressWarnings("all")
@SuppressFBWarnings("EI")
public class Ccm {
/**
* List of metrics present in the XML file.
*/
private List metrics = new ArrayList();
public List getMetrics() {
return metrics;
}
public void setMetrics(List metrics) {
this.metrics = metrics;
}
public void addMetric(Metric metric) {
this.metrics.add(metric);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy