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

hudson.plugins.findbugs.FindBugsProjectAction Maven / Gradle / Ivy

Go to download

This plug-in generates the trend report for FindBugs, an open source program which uses static analysis to look for bugs in Java code.

There is a newer version: 4.48-h-2
Show newest version
package hudson.plugins.findbugs;

import hudson.model.AbstractProject;
import hudson.plugins.analysis.core.ResultAction;
import hudson.plugins.analysis.core.AbstractProjectAction;
import hudson.plugins.analysis.graph.BuildResultGraph;
import hudson.plugins.findbugs.dashboard.FindbugsEvaluationsGraph;

import java.util.List;

import com.google.common.collect.Lists;

/**
 * Entry point to visualize the FindBugs trend graph in the project screen.
 * Drawing of the graph is delegated to the associated {@link ResultAction}.
 *
 * @author Ulli Hafner
 */
public class FindBugsProjectAction extends AbstractProjectAction> {
    /**
     * Instantiates a new {@link FindBugsProjectAction}.
     *
     * @param project
     *            the project that owns this action
     */
    public FindBugsProjectAction(final AbstractProject project) {
        this(project, FindBugsResultAction.class);
    }

    /**
     * Instantiates a new {@link FindBugsProjectAction}.
     *
     * @param project
     *            the project that owns this action
     * @param type
     *            the result action type
     */
    public FindBugsProjectAction(final AbstractProject project,
            final Class> type) {
        super(project, type, Messages._FindBugs_ProjectAction_Name(), Messages._FindBugs_Trend_Name(),
                FindBugsDescriptor.PLUGIN_ID, FindBugsDescriptor.ICON_URL, FindBugsDescriptor.RESULT_URL);
    }

    @Override
    protected List getAvailableGraphs() {
        List list = Lists.newArrayList();
        list.addAll(super.getAvailableGraphs());
        list.add(new FindbugsEvaluationsGraph());
        return list;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy