All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hudson.plugins.pmd.tokens.PmdWarningCountTokenMacro Maven / Gradle / Ivy

Go to download

This plug-in generates the trend report for PMD, an open source static code analysis program.

There is a newer version: 3.34-h-1
Show newest version
package hudson.plugins.pmd.tokens;

import hudson.Extension;
import hudson.plugins.analysis.tokens.AbstractAnnotationsCountTokenMacro;
import hudson.plugins.pmd.PmdMavenResultAction;
import hudson.plugins.pmd.PmdResultAction;

/**
 * Provides a token that evaluates to the number of PMD warnings.
 *
 * @author Ulli Hafner
 */
@Extension(optional = true)
public class PmdWarningCountTokenMacro extends AbstractAnnotationsCountTokenMacro {
    /**
     * Creates a new instance of {@link PmdWarningCountTokenMacro}.
     */
    @SuppressWarnings("unchecked")
    public PmdWarningCountTokenMacro() {
        super("PMD_COUNT", PmdResultAction.class, PmdMavenResultAction.class);
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy