hudson.plugins.findbugs.FindBugsDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of findbugs Show documentation
Show all versions of findbugs Show documentation
This plug-in generates the trend report for FindBugs,
an open source program which uses static analysis to look for bugs
in Java code.
package hudson.plugins.findbugs;
import hudson.Extension;
import hudson.plugins.analysis.core.PluginDescriptor;
/**
* Descriptor for the class {@link FindBugsPublisher}. Used as a singleton. The
* class is marked as public so that it can be accessed from views.
*
* @author Ulli Hafner
*/
@Extension(ordinal = 100) // NOCHECKSTYLE
public final class FindBugsDescriptor extends PluginDescriptor {
private static final String PLUGIN_NAME = "findbugs";
/** Icon to use for the result and project action. */
private static final String ACTION_ICON = "/plugin/findbugs/icons/findbugs-32x32.gif";
/**
* Instantiates a new find bugs descriptor.
*/
public FindBugsDescriptor() {
super(FindBugsPublisher.class);
}
/** {@inheritDoc} */
@Override
public String getDisplayName() {
return Messages.FindBugs_Publisher_Name();
}
/** {@inheritDoc} */
@Override
public String getPluginName() {
return PLUGIN_NAME;
}
/** {@inheritDoc} */
@Override
public String getIconUrl() {
return ACTION_ICON;
}
}