@Extension public class PMDMetricsProviderFactory extends MetricsProviderFactory<MetricsAction>
MetricsProviderFactory for PMD metrics.| Constructor and Description |
|---|
PMDMetricsProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
MetricsProvider |
getFor(List<MetricsAction> actions)
Get all
MetricsMeasurements for the actions of a build. |
static ArrayList<MetricDefinition> |
getSupportedMetrics()
Return all metrics supported by the metrics-aggregation plugin, i.e. by PMD.
|
ArrayList<MetricDefinition> |
supportedMetricsFor(List<MetricsAction> actions)
Returns all metrics this
MetricsProviderFactory reports, for a list of certain builds. |
Class<MetricsAction> |
type()
Get the type of action this
MetricsProviderFactory is for. |
all, getAllFor, getAllSupportedMetricsForpublic Class<MetricsAction> type()
MetricsProviderFactoryMetricsProviderFactory is for. (This is necessary to be able to provide the
correct classes for the getFor(List) method.)type in class MetricsProviderFactory<MetricsAction>public MetricsProvider getFor(List<MetricsAction> actions)
MetricsProviderFactoryMetricsMeasurements for the actions of a build. An implementing extension is supposed to filter
the relevant actions from the list and calculate their metrics from them.getFor in class MetricsProviderFactory<MetricsAction>actions - the actions of a buildMetricsProvider providing the actionspublic ArrayList<MetricDefinition> supportedMetricsFor(List<MetricsAction> actions)
MetricsProviderFactoryMetricsProviderFactory reports, for a list of certain builds.supportedMetricsFor in class MetricsProviderFactory<MetricsAction>actions - the actions of a buildpublic static ArrayList<MetricDefinition> getSupportedMetrics()
MetricDefinitionsCopyright © 2016–2020. All rights reserved.