org.codehaus.mojo.spotbugs.SpotBugsInfo.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotbugs-maven-plugin Show documentation
Show all versions of spotbugs-maven-plugin Show documentation
This Plug-In generates reports based on the SpotBugs Library
/*
* Copyright 2005-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.codehaus.mojo.spotbugs
/**
* Generates a Spotbugs Report when the site plugin is run.
* The HTML report is generated for site commands only.
* To see more documentation about Spotbugs' options, please see the
* Spotbugs Manual.
*/
interface SpotBugsInfo {
/**
* The name of the Plug-In.
*/
static final String PLUGIN_NAME = "spotbugs"
/**
* The name of the property resource bundle (Filesystem).
*/
static final String BUNDLE_NAME = "spotbugs"
/**
* The key to get the name of the Plug-In from the bundle.
*/
static final String NAME_KEY = "report.spotbugs.name"
/**
* The key to get the description of the Plug-In from the bundle.
*/
static final String DESCRIPTION_KEY = "report.spotbugs.description"
/**
* The key to get the source directory message of the Plug-In from the bundle.
*/
static final String SOURCE_ROOT_KEY = "report.spotbugs.sourceRoot"
/**
* The key to get the source directory message of the Plug-In from the bundle.
*/
static final String TEST_SOURCE_ROOT_KEY = "report.spotbugs.testSourceRoot"
/**
* The key to get the java source message of the Plug-In from the bundle.
*/
static final String JAVA_SOURCES_KEY = "report.spotbugs.javasources"
/**
* The extensions to search files for.
*/
static final String[] EXTENSIONS = [ "class" ]
static final String COMMA = ","
static final String FORWARD_SLASH = '/'
static final String BACKWARD_SLASH = '\\'
/**
* The character to separate URL tokens.
*/
static final String URL_SEPARATOR = "/"
static final String BLANK = " "
static final String PERIOD = "."
static final EOL = System.lineSeparator()
static final String URL = "url"
static final String CLASS_SUFFIX = '.class'
Map spotbugsEfforts = [Max: "max", Min: "min", Default: "default"]
Map spotbugsThresholds = [High: "high", Exp: "experimental", Low: "low", Medium: "medium", Default: "medium"]
List spotbugsPriority = ["unknown", "High", "Medium", "Low"]
}