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

org.codehaus.mojo.findbugs.FindbugsViolationCheckMojo Maven / Gradle / Ivy

There is a newer version: 3.0.5
Show newest version
//
// Generated stub from file:/C:/svnWork/findbugs-maven-plugin/target/checkout/src/main/groovy/org/codehaus/mojo/findbugs/FindbugsViolationCheckMojo.groovy
//

package org.codehaus.mojo.findbugs;

import java.lang.*;
import java.io.*;
import java.net.*;
import java.util.*;
import groovy.lang.*;
import groovy.util.*;
import edu.umd.cs.findbugs.DetectorFactory;
import edu.umd.cs.findbugs.DetectorFactoryCollection;
import edu.umd.cs.findbugs.FindBugs2;
import edu.umd.cs.findbugs.Project;
import edu.umd.cs.findbugs.TextUIBugReporter;
import edu.umd.cs.findbugs.XMLBugReporter;
import edu.umd.cs.findbugs.config.UserPreferences;
import edu.umd.cs.findbugs.filter.FilterException;
import org.apache.maven.artifact.DependencyResolutionRequiredException;
import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
import org.apache.maven.artifact.resolver.ArtifactResolutionException;
import org.apache.maven.project.MavenProject;
import org.codehaus.groovy.maven.mojo.GroovyMojo;
import org.codehaus.plexus.resource.ResourceManager;
import org.codehaus.plexus.resource.loader.FileResourceLoader;
import org.codehaus.plexus.util.FileUtils;

/**
 * Fail the build if there were any FindBugs violations in the source code.
 * An XML report is put out by default in the target directory with the errors.
 * To see more documentation about FindBugs' options, please see the
 * FindBugs Manual.
 *
 * @since 2.0
 * @goal check
 * @phase verify
 * @requiresDependencyResolution compile
 * @requiresProject
 * @author Garvin LeClaire
 * @version $Id: FindbugsViolationCheckMojo.groovy gleclaire $
 */
public class FindbugsViolationCheckMojo
    extends GroovyMojo
{
    /**
     * The name of the property resource bundle (Filesystem).
     */
    static final private java.lang.String BUNDLE_NAME = null;
    static final public java.lang.String getBUNDLE_NAME() {
        throw new InternalError("Stubbed method");
    }

    /**
     * The name of the coreplugin.
     */
    static final private java.lang.String FINDBUGS_COREPLUGIN = null;
    static final public java.lang.String getFINDBUGS_COREPLUGIN() {
        throw new InternalError("Stubbed method");
    }

    /**
     * The regex pattern to search for java class files.
     */
    static final private java.lang.String JAVA_REGEX_PATTERN = null;
    static final public java.lang.String getJAVA_REGEX_PATTERN() {
        throw new InternalError("Stubbed method");
    }

    /**
     * Directory containing the class files for FindBugs to analyze.
     *
     * @parameter default-value="${project.build.outputDirectory}"
     * @required
     */
    private File classFilesDirectory = null;
    public File getClassFilesDirectory() {
        throw new InternalError("Stubbed method");
    }
    public void setClassFilesDirectory(File value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * turn on Findbugs debugging
     *
     * @parameter default-value="false"
     */
    private Boolean debug = null;
    public Boolean getDebug() {
        throw new InternalError("Stubbed method");
    }
    public void setDebug(Boolean value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * The visitor list to run. This is a comma-delimited list.
     *
     * @parameter
     */
    private java.lang.String visitors = null;
    public java.lang.String getVisitors() {
        throw new InternalError("Stubbed method");
    }
    public void setVisitors(java.lang.String value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * The visitor list to omit. This is a comma-delimited list.
     *
     * @parameter
     */
    private java.lang.String omitVisitors = null;
    public java.lang.String getOmitVisitors() {
        throw new InternalError("Stubbed method");
    }
    public void setOmitVisitors(java.lang.String value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * List of artifacts this plugin depends on. Used for resolving the Findbugs coreplugin.
     *
     * @parameter expression="${plugin.artifacts}"
     * @required
     * @readonly
     */
    private ArrayList pluginArtifacts = null;
    public ArrayList getPluginArtifacts() {
        throw new InternalError("Stubbed method");
    }
    public void setPluginArtifacts(ArrayList value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Effort of the bug finders. Valid values are Min, Default and Max.
     *
     * @parameter default-value="Default"
     */
    private java.lang.String effort = null;
    public java.lang.String getEffort() {
        throw new InternalError("Stubbed method");
    }
    public void setEffort(java.lang.String value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Specifies the directory where the findbugs xml output will be generated.
     *
     * @parameter default-value="${project.build.directory}"
     * @required
     */
    private File findbugsCheckOutputDirectory = null;
    public File getFindbugsCheckOutputDirectory() {
        throw new InternalError("Stubbed method");
    }
    public void setFindbugsCheckOutputDirectory(File value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Restrict analysis to the given comma-separated list of classes and packages.
     *
     * @parameter
     */
    private java.lang.String onlyAnalyze = null;
    public java.lang.String getOnlyAnalyze() {
        throw new InternalError("Stubbed method");
    }
    public void setOnlyAnalyze(java.lang.String value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * The plugin list to include in the report. This is a comma-delimited list.
     *
     * @parameter
     */
    private java.lang.String pluginList = null;
    public java.lang.String getPluginList() {
        throw new InternalError("Stubbed method");
    }
    public void setPluginList(java.lang.String value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * The Flag letting us know if classes have been loaded already.
     *
     * @parameter
     * @readonly
     */
    static private boolean pluginLoaded = false;
    static public boolean getPluginLoaded() {
        throw new InternalError("Stubbed method");
    }
    static public boolean isPluginLoaded() {
        throw new InternalError("Stubbed method");
    }
    static public void setPluginLoaded(boolean value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Maven Project
     *
     * @parameter expression="${project}"
     * @required
     * @readonly
     */
    private MavenProject project = null;
    public MavenProject getProject() {
        throw new InternalError("Stubbed method");
    }
    public void setProject(MavenProject value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Relaxed reporting mode. For many detectors, this option suppresses the heuristics used to avoid reporting false
     * positives.
     *
     * @parameter default-value="false"
     */
    private Boolean relaxed = null;
    public Boolean getRelaxed() {
        throw new InternalError("Stubbed method");
    }
    public void setRelaxed(Boolean value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Skip entire check.
     *
     * @parameter expression="${skip}" default-value="false"
     */
    private boolean skip = false;
    public boolean getSkip() {
        throw new InternalError("Stubbed method");
    }
    public boolean isSkip() {
        throw new InternalError("Stubbed method");
    }
    public void setSkip(boolean value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Fail the build on an error.
     *
     * @parameter default-value="true"
     * @since 2.0
     */
    private boolean failOnError = false;
    public boolean getFailOnError() {
        throw new InternalError("Stubbed method");
    }
    public boolean isFailOnError() {
        throw new InternalError("Stubbed method");
    }
    public void setFailOnError(boolean value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Threshold of minimum bug severity to report. Valid values are High, Default, Low, Ignore, and Exp (for experimental).
     *
     * @parameter default-value="Default"
     */
    private java.lang.String threshold = null;
    public java.lang.String getThreshold() {
        throw new InternalError("Stubbed method");
    }
    public void setThreshold(java.lang.String value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * File name of the include filter. Only bugs in matching the filters are reported.
     *
     * @parameter
     */
    private java.lang.String includeFilterFile = null;
    public java.lang.String getIncludeFilterFile() {
        throw new InternalError("Stubbed method");
    }
    public void setIncludeFilterFile(java.lang.String value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * File name of the exclude filter. Bugs matching the filters are not reported.
     *
     * @parameter
     */
    private java.lang.String excludeFilterFile = null;
    public java.lang.String getExcludeFilterFile() {
        throw new InternalError("Stubbed method");
    }
    public void setExcludeFilterFile(java.lang.String value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Resource bundle for a specific locale.
     *
     * @parameter
     * @readonly
     */
    private ResourceBundle bundle = null;
    public ResourceBundle getBundle() {
        throw new InternalError("Stubbed method");
    }
    public void setBundle(ResourceBundle value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * @component
     * @required
     * @readonly
     */
    private ResourceManager resourceManager = null;
    public ResourceManager getResourceManager() {
        throw new InternalError("Stubbed method");
    }
    public void setResourceManager(ResourceManager value) {
        throw new InternalError("Stubbed method");
    }

    public void execute() {
        throw new InternalError("Stubbed method");
    }

    /**
     * Returns the effort parameter to use.
     *
     * @return A valid effort parameter.
     */
    protected EffortParameter getEffortParameter() {
        throw new InternalError("Stubbed method");
    }

    /**
     * Adds the dependend libraries of the project to the findbugs aux classpath.
     *
     * @param findBugsProject
The find bugs project to add the aux classpath entries.
     */
    protected void addClasspathEntriesToFindBugsProject(Project findBugsProject) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Adds the specified plugins to findbugs. The coreplugin is always added first.
     */
    protected void addPluginsToFindBugs() {
        throw new InternalError("Stubbed method");
    }

    /**
     * Returns the threshold parameter to use.
     *
     * @return A valid threshold parameter.
     */
    protected ThresholdParameter getThresholdParameter() {
        throw new InternalError("Stubbed method");
    }

    /**
     * Adds the specified visitors to findbugs.
     *
     * @param preferences
The find bugs UserPreferences.
     */
    protected void addVisitorsToFindBugs(UserPreferences preferences) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Sets the Debug Level
     *
     * @param findBugs
The find bugs to add debug level information.
     */
    protected void setFindBugsDebug(FindBugs2 findBugs) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Adds the specified filters of the project to the findbugs.
     *
     * @param findBugs
The find bugs to add the filters.
     */
    protected void addFiltersToFindBugs(FindBugs2 findBugs) {
        throw new InternalError("Stubbed method");
    }

    /**
     * Adds the specified plugins to findbugs. The coreplugin is always added first.
     */
    protected void addClassScreenerToFindBugs(FindBugs2 findBugs) {
        throw new InternalError("Stubbed method");
    }

    public groovy.lang.MetaClass getMetaClass() {
        throw new InternalError("Stubbed method");
    }

    public void setMetaClass(groovy.lang.MetaClass metaClass) {
        throw new InternalError("Stubbed method");
    }

    public java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args) {
        throw new InternalError("Stubbed method");
    }

    public java.lang.Object getProperty(java.lang.String name) {
        throw new InternalError("Stubbed method");
    }

    public void setProperty(java.lang.String name, java.lang.Object value) {
        throw new InternalError("Stubbed method");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy