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

hudson.plugins.findbugs.FindBugsResultAction 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.19
Show newest version
package hudson.plugins.findbugs;

import hudson.model.AbstractBuild;
import hudson.plugins.analysis.core.AbstractResultAction;
import hudson.plugins.analysis.core.HealthDescriptor;
import hudson.plugins.analysis.core.PluginDescriptor;

/**
 * Controls the live cycle of the FindBugs results. This action persists the
 * results of the FindBugs analysis of a build and displays the results on the
 * build page. The actual visualization of the results is defined in the
 * matching summary.jelly file.
 * 

* Moreover, this class renders the FindBugs result trend. *

* * @author Ulli Hafner */ public class FindBugsResultAction extends AbstractResultAction { /** * Creates a new instance of {@link FindBugsResultAction}. * * @param owner * the associated build of this action * @param healthDescriptor * health descriptor to use * @param result * the result in this build */ public FindBugsResultAction(final AbstractBuild owner, final HealthDescriptor healthDescriptor, final FindBugsResult result) { super(owner, new FindBugsHealthDescriptor(healthDescriptor), result); } /** * Creates a new instance of FindBugsBuildAction. * * @param owner * the associated build of this action * @param healthDescriptor * health descriptor to use */ public FindBugsResultAction(final AbstractBuild owner, final HealthDescriptor healthDescriptor) { super(owner, new FindBugsHealthDescriptor(healthDescriptor)); } /** {@inheritDoc} */ public String getDisplayName() { return Messages.FindBugs_ProjectAction_Name(); } /** {@inheritDoc} */ @Override protected PluginDescriptor getDescriptor() { return new FindBugsDescriptor(); } /** {@inheritDoc} */ @Override public String getMultipleItemsTooltip(final int numberOfItems) { return Messages.FindBugs_ResultAction_MultipleWarnings(numberOfItems); } /** {@inheritDoc} */ @Override public String getSingleItemTooltip() { return Messages.FindBugs_ResultAction_OneWarning(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy