├── .gitattributes ├── .gitignore ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── .travis.yml ├── LICENSE.txt ├── README.md ├── deploy-ca.sh ├── log4j.properties ├── mvnw ├── mvnw.cmd ├── pom.xml ├── src ├── changes │ └── changes.xml ├── it-src │ └── test │ │ └── java │ │ └── org │ │ └── codehaus │ │ └── mojo │ │ └── findbugsmavenplugin │ │ └── it │ │ ├── App.java │ │ └── FooTest.java ├── it-tools │ ├── build-tools │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ ├── filters │ │ │ │ └── lib-filter2.xml │ │ │ │ └── whizbang │ │ │ │ └── lib-filter.xml │ │ └── verify.groovy │ └── prime │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ └── main │ │ │ └── resources │ │ │ ├── filters │ │ │ └── lib-filter2.xml │ │ │ └── whizbang │ │ │ └── lib-filter.xml │ │ └── verify.groovy ├── it │ ├── MFINDBUGS-145 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── findbugsmavenplugin │ │ │ │ └── it │ │ │ │ └── mfindbugs145 │ │ │ │ └── App.java │ │ └── verify.bsh │ ├── MFINDBUGS-178 │ │ ├── invoker.properties │ │ └── pom.xml │ ├── basic-1 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── check-fail │ │ ├── invoker.properties │ │ └── pom.xml │ ├── check-jvmargs │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── check-multi │ │ ├── invoker.properties │ │ ├── modules │ │ │ ├── module-1 │ │ │ │ └── pom.xml │ │ │ ├── module-2 │ │ │ │ └── pom.xml │ │ │ └── pom.xml │ │ ├── pom.xml │ │ └── verify.groovy │ ├── check-nofail │ │ ├── invoker.properties │ │ └── pom.xml │ ├── check-pluginList-repo │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── check-skip │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── check-timeout │ │ ├── invoker.properties │ │ └── pom.xml │ ├── check │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── common.xml │ ├── effort-default │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── effort-max │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── effort-min │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── empty │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── app.properties │ │ └── verify.groovy │ ├── encoding-utf8 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── exclude-modules │ │ ├── invoker.properties │ │ ├── module1 │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── excludeBugs.xml │ │ ├── module2 │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── excludeBugs.xml │ │ ├── pom.xml │ │ └── verify.groovy │ ├── exclude-multi │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── exclude │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── excludeBugsFile │ │ ├── excludeBugs1.xml │ │ ├── excludeBugs2.xml │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── experimental │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── include-multi │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── include │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── maxRank │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── multi-build │ │ ├── invoker.properties │ │ ├── modules │ │ │ ├── module-1 │ │ │ │ └── pom.xml │ │ │ ├── module-2 │ │ │ │ └── pom.xml │ │ │ └── pom.xml │ │ ├── pom.xml │ │ └── verify.groovy │ ├── multi │ │ ├── invoker.properties │ │ ├── modules │ │ │ ├── module-1 │ │ │ │ ├── pom.xml │ │ │ │ └── src │ │ │ │ │ └── site │ │ │ │ │ ├── site.xml │ │ │ │ │ └── xdoc │ │ │ │ │ └── index.xml │ │ │ ├── module-2 │ │ │ │ ├── pom.xml │ │ │ │ └── src │ │ │ │ │ └── site │ │ │ │ │ ├── site.xml │ │ │ │ │ └── xdoc │ │ │ │ │ └── index.xml │ │ │ └── pom.xml │ │ ├── pom.xml │ │ └── verify.groovy │ ├── nested │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── no-src │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── test │ │ │ │ └── java │ │ │ │ └── EmptyJUnitTest.java │ │ └── verify.groovy │ ├── no-testsrc │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── omitVisitors │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── onlyAnalyze │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── pluginList-repo │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── pluginList │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── relaxed │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── settings.xml │ ├── site-brazil │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── site-default │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── site-french │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── site-spanish │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── skip │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── skipEmpty │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── test │ │ │ │ └── App.java │ │ └── verify.groovy │ ├── threaded │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── threshold-experimental │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── threshold-high │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── threshold-low │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── trace │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── userPrefs-override │ │ ├── edu.umd.cs.findbugs.core.prefs │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ └── userPrefs │ │ ├── edu.umd.cs.findbugs.core.prefs │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy ├── main │ ├── groovy │ │ └── org │ │ │ └── codehaus │ │ │ └── mojo │ │ │ └── findbugs │ │ │ ├── FindBugsGui.groovy │ │ │ ├── FindBugsInfo.groovy │ │ │ ├── FindBugsMojo.groovy │ │ │ ├── FindBugsPluginsTrait.groovy │ │ │ ├── FindbugsReportGenerator.groovy │ │ │ ├── FindbugsViolationCheckMojo.groovy │ │ │ ├── ResourceHelper.groovy │ │ │ └── XDocsReporter.groovy │ ├── resources │ │ ├── META-INF │ │ │ └── m2e │ │ │ │ └── lifecycle-mapping-metadata.xml │ │ ├── findbugs.properties │ │ ├── findbugs_en.properties │ │ ├── findbugs_es.properties │ │ ├── findbugs_fr.properties │ │ ├── findbugs_no_NO.properties │ │ └── findbugs_pt_BR.properties │ └── tools │ │ ├── annotations.pom │ │ ├── bcel.pom │ │ ├── cleanup.sh │ │ ├── fb2bundle.groovy │ │ ├── fb2local.groovy │ │ ├── fb2repo.groovy │ │ ├── findbugs-ant.pom │ │ ├── findbugs.pom │ │ ├── jFormatString.pom │ │ └── jsr305.pom └── site │ ├── apt │ ├── examples │ │ ├── multi-module-config.apt.vm │ │ └── violationChecking.apt.vm │ ├── index.apt.vm │ └── usage.apt.vm │ ├── fml │ └── faq.fml │ ├── resources │ └── examples │ │ ├── css │ │ ├── maven-base.css │ │ ├── maven-theme.css │ │ ├── print.css │ │ └── site.css │ │ ├── findbugs.html │ │ ├── findbugs.xml │ │ ├── findbugsXml.xml │ │ ├── images │ │ ├── collapsed.gif │ │ ├── expanded.gif │ │ ├── external.png │ │ ├── icon_error_sml.gif │ │ ├── icon_info_sml.gif │ │ ├── icon_success_sml.gif │ │ ├── icon_warning_sml.gif │ │ ├── logos │ │ │ ├── build-by-maven-black.png │ │ │ ├── build-by-maven-white.png │ │ │ └── maven-feather.png │ │ └── newwindow.png │ │ ├── xref-test │ │ ├── allclasses-frame.html │ │ ├── index.html │ │ ├── org │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── findbugsmavenplugin │ │ │ │ └── it │ │ │ │ ├── App.html │ │ │ │ ├── FooTest.html │ │ │ │ ├── package-frame.html │ │ │ │ └── package-summary.html │ │ ├── overview-frame.html │ │ ├── overview-summary.html │ │ └── stylesheet.css │ │ └── xref │ │ ├── A.html │ │ ├── AbstractMissingHashCode.html │ │ ├── AccidentalNonConstructorInInnerClass.html │ │ ├── AnnotationTest.html │ │ ├── AppendingToAnObjectOutputStream.html │ │ ├── ArrayToString.html │ │ ├── AssignedOnlyInCtor.html │ │ ├── AssumeUnsignedBytes.html │ │ ├── UseInitCause.html │ │ ├── UseOfNonHashableClassInHashDataStructure.html │ │ ├── UselessAssignments.html │ │ ├── UselessControlFlow.html │ │ ├── UselessCurrentThread.html │ │ ├── UselessFinalize.html │ │ ├── UselessSCMethods.html │ │ ├── UserAss3rtion.html │ │ ├── UserMistakes.html │ │ ├── allclasses-frame.html │ │ ├── badNaming │ │ ├── package1 │ │ │ ├── A.html │ │ │ ├── package-frame.html │ │ │ └── package-summary.html │ │ └── package2 │ │ │ ├── A.html │ │ │ ├── AnInterface.html │ │ │ ├── package-frame.html │ │ │ └── package-summary.html │ │ ├── equals │ │ ├── ArrayEquality.html │ │ ├── package-frame.html │ │ └── package-summary.html │ │ ├── gcUnrelatedTypes │ │ ├── AllListsCouldBeEqual.html │ │ ├── ArrayListContains.html │ │ ├── ArrayListContains0.html │ │ ├── package-frame.html │ │ └── package-summary.html │ │ ├── index.html │ │ ├── jsr305 │ │ ├── AlwaysBlue.html │ │ ├── package-frame.html │ │ └── package-summary.html │ │ ├── npe │ │ ├── AtomicFieldUpdater.html │ │ ├── UseCheckUse.html │ │ ├── package-frame.html │ │ └── package-summary.html │ │ ├── nullnessAnnotations │ │ ├── UseAnnotations.html │ │ ├── package-frame.html │ │ └── package-summary.html │ │ ├── obligation │ │ ├── UsesWillCloseAnnotation.html │ │ ├── package-frame.html │ │ └── package-summary.html │ │ ├── overview-frame.html │ │ ├── overview-summary.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ ├── stylesheet.css │ │ └── uselessThread │ │ ├── UsefulThread.html │ │ ├── package-frame.html │ │ └── package-summary.html │ └── site.xml └── versionTest.groovy /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .classpath 2 | .project 3 | .settings 4 | target/ 5 | *.ipr 6 | *.iws 7 | *.iml 8 | *.asc 9 | -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gleclaire/findbugs-maven-plugin/214c884c4e17102492f602c93a03f2e629506260/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | sudo: false 3 | 4 | jdk: 5 | - oraclejdk8 6 | - openjdk8 7 | - openjdk7 8 | 9 | script: 10 | - ./mvnw verify -B -P run-its -DtestSrc=remote -Dinvoker.parallelThreads=4 11 | -------------------------------------------------------------------------------- /deploy-ca.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | CA_CERT="StartSSL-CA" 5 | INT_CERT="StartSSL-Intermediate" 6 | 7 | curl 'https://docs.codehaus.org/download/attachments/158859410/startssl-CA.pem?version=1&modificationDate=1277952972158' > $CA_CERT.pem 8 | 9 | sudo keytool -import -alias $CA_CERT -file $CA_CERT.pem -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit -noprompt 10 | 11 | curl 'https://docs.codehaus.org/download/attachments/158859410/startssl-Intermediate.pem?version=1&modificationDate=1277952972182' > $INT_CERT.pem 12 | 13 | sudo keytool -import -alias $INT_CERT -file $INT_CERT.pem -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit -noprompt -------------------------------------------------------------------------------- /log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and only append to the CONSOLE. 2 | log4j.rootLogger=DEBUG, CONSOLE 3 | 4 | log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender 5 | 6 | # CONSOLE uses PatternLayout. 7 | log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout 8 | log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} %c{1} [%t] %p - %m%n 9 | -------------------------------------------------------------------------------- /src/it-src/test/java/org/codehaus/mojo/findbugsmavenplugin/it/App.java: -------------------------------------------------------------------------------- 1 | package org.codehaus.mojo.findbugsmavenplugin.it; 2 | 3 | 4 | import org.junit.*; 5 | 6 | 7 | /** 8 | * Hello world! 9 | * 10 | */ 11 | public class App implements Cloneable 12 | { 13 | 14 | public static void main( String[] args ) 15 | { 16 | System.out.println( "Hello World!" ); 17 | } 18 | 19 | public Object clone() 20 | { 21 | return null; // Does not call 'super.clone()'. 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/it-src/test/java/org/codehaus/mojo/findbugsmavenplugin/it/FooTest.java: -------------------------------------------------------------------------------- 1 | package org.codehaus.mojo.findbugsmavenplugin.it; 2 | 3 | import static org.junit.Assert.assertEquals; 4 | 5 | import org.junit.Test; 6 | import org.junit.Ignore; 7 | import org.junit.runner.RunWith; 8 | import org.junit.runners.JUnit4; 9 | 10 | /** 11 | * Tests for {@link Foo}. 12 | * 13 | * @author user@example.com (John Doe) 14 | */ 15 | public class FooTest { 16 | 17 | @Test 18 | public void thisAlwaysPasses() { 19 | 20 | } 21 | 22 | @Test 23 | @Ignore 24 | public void thisIsIgnored() { 25 | } 26 | } -------------------------------------------------------------------------------- /src/it-tools/build-tools/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean install 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it-tools/build-tools/src/main/resources/filters/lib-filter2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/it-tools/build-tools/src/main/resources/whizbang/lib-filter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/it-tools/build-tools/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | assert new File(basedir, 'target/build-tools-testing.jar').exists() 18 | 19 | -------------------------------------------------------------------------------- /src/it-tools/prime/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean package 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it-tools/prime/src/main/resources/filters/lib-filter2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/it-tools/prime/src/main/resources/whizbang/lib-filter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/it-tools/prime/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | assert new File(basedir, 'target/prime-testing.jar').exists() 18 | 19 | -------------------------------------------------------------------------------- /src/it/MFINDBUGS-145/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/MFINDBUGS-145/src/main/java/org/codehaus/mojo/findbugsmavenplugin/it/mfindbugs145/App.java: -------------------------------------------------------------------------------- 1 | package org.codehaus.mojo.findbugsmavenplugin.it.mfindbugs145; 2 | 3 | /** 4 | * Hello world! 5 | * 6 | */ 7 | public class App implements Cloneable 8 | { 9 | 10 | public static void main( String[] args ) 11 | { 12 | System.out.println( "Hello World!" ); 13 | } 14 | 15 | public Object clone() 16 | { 17 | return null; // Does not call 'super.clone()'. 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/it/MFINDBUGS-145/verify.bsh: -------------------------------------------------------------------------------- 1 | import org.codehaus.plexus.util.FileUtils; 2 | 3 | import java.io.*; 4 | import java.util.*; 5 | 6 | String[] paths = 7 | { 8 | "target/site/findbugs.html", 9 | "target/site/xref/index.html", 10 | }; 11 | 12 | // Findbugs and JXR reports 13 | for ( String path : paths ) 14 | { 15 | File file = new File( basedir, path ); 16 | System.out.println( "Checking for existence of " + file ); 17 | if ( !file.isFile() ) 18 | { 19 | throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() ); 20 | } 21 | } 22 | 23 | File report = new File( basedir, "target/site/findbugs.html" ); 24 | String content = FileUtils.fileRead( report, "UTF-8" ); 25 | if ( content.indexOf( "" ) < 0 ) 26 | { 27 | throw new IOException( "XRef link not generated." ); 28 | } 29 | 30 | return true; 31 | -------------------------------------------------------------------------------- /src/it/MFINDBUGS-178/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean verify site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/basic-1/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile compiler:testCompile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/basic-1/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | basic-1 28 | basic-1 29 | jar 30 | 31 | true 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-jxr-plugin 36 | @jxrPluginVersion@ 37 | 38 | 39 | org.codehaus.mojo 40 | findbugs-maven-plugin 41 | 42 | true 43 | true 44 | true 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /src/it/check-fail/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile findbugs:check 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = failure 5 | -------------------------------------------------------------------------------- /src/it/check-fail/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | check 28 | check 29 | jar 30 | 31 | 32 | 33 | org.codehaus.mojo 34 | findbugs-maven-plugin 35 | 36 | true 37 | true 38 | @findbugsTestDebug@ 39 | High 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/it/check-jvmargs/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile findbugs:check 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/check-jvmargs/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | check-jvmargs 28 | check-jvmargs 29 | jar 30 | 31 | 32 | 33 | org.codehaus.mojo 34 | findbugs-maven-plugin 35 | 36 | true 37 | true 38 | false 39 | @findbugsTestDebug@ 40 | High 41 | -Dfindbugs.dumpProperties=true -Dfindbugs.progress=true -Dfindbugs.verbose=true -Dfindbugs.debug=true 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /src/it/check-jvmargs/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | File findbugXdoc = new File(basedir, 'target/findbugs.xml') 19 | assert findbugXdoc.exists() 20 | 21 | File findbugXml = new File(basedir, 'target/findbugsXml.xml') 22 | assert findbugXml.exists() 23 | 24 | 25 | println '**********************************' 26 | println "Checking Findbugs Native XML file" 27 | println '**********************************' 28 | 29 | path = new XmlSlurper().parse(findbugXml) 30 | 31 | allNodes = path.depthFirst().collect{ it } 32 | def findbugsXmlErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 33 | println "BugInstance size is ${findbugsXmlErrors}" 34 | 35 | println '***************************' 36 | println "Checking xDoc file" 37 | println '***************************' 38 | 39 | def path = new XmlSlurper().parse(findbugXdoc) 40 | 41 | def allNodes = path.depthFirst().collect{ it } 42 | def xdocErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 43 | println "BugInstance size is ${xdocErrors}" 44 | 45 | assert xdocErrors == findbugsXmlErrors 46 | 47 | -------------------------------------------------------------------------------- /src/it/check-multi/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile findbugs:check 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/check-multi/modules/module-1/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | modules 24 | testing 25 | ../pom.xml 26 | 27 | module-1 28 | module-1 29 | jar 30 | -------------------------------------------------------------------------------- /src/it/check-multi/modules/module-2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | modules 24 | testing 25 | ../pom.xml 26 | 27 | module-2 28 | module-2 29 | jar 30 | -------------------------------------------------------------------------------- /src/it/check-multi/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 19 | 4.0.0 20 | 21 | findbugs-maven-plugin.it 22 | common 23 | testing 24 | ../common.xml 25 | 26 | multi 27 | multi 28 | pom 29 | 30 | modules 31 | 32 | -------------------------------------------------------------------------------- /src/it/check-multi/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | 19 | // check module 1 20 | 21 | 22 | File findbugXml = new File(basedir, "modules/module-1/target/findbugsXml.xml") 23 | assert findbugXml.exists() 24 | 25 | def path = new XmlSlurper().parse(findbugXml) 26 | 27 | println '**********************************' 28 | println "Checking Findbugs Native XML file" 29 | println '**********************************' 30 | 31 | 32 | allNodes = path.depthFirst().collect { it } 33 | def findbugsErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 34 | println "BugInstance size is ${findbugsErrors}" 35 | 36 | assert findbugsErrors > 0 37 | 38 | 39 | // check module 2 40 | 41 | findbugXml = new File(basedir, "modules/module-2/target/findbugsXml.xml") 42 | assert findbugXml.exists() 43 | 44 | path = new XmlSlurper().parse(findbugXml) 45 | 46 | println '**********************************' 47 | println "Checking Findbugs Native XML file" 48 | println '**********************************' 49 | 50 | allNodes = path.depthFirst().collect { it } 51 | findbugsErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 52 | println "BugInstance size is ${findbugsErrors}" 53 | 54 | assert findbugsErrors > 0 55 | -------------------------------------------------------------------------------- /src/it/check-nofail/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile findbugs:check 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/check-nofail/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | check 28 | check 29 | jar 30 | 31 | 32 | 33 | org.codehaus.mojo 34 | findbugs-maven-plugin 35 | 36 | true 37 | false 38 | @findbugsTestDebug@ 39 | High 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/it/check-pluginList-repo/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile findbugs:check 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/check-pluginList-repo/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 13 | 4.0.0 14 | 15 | findbugs-maven-plugin.it 16 | common 17 | testing 18 | ../common.xml 19 | 20 | check-pluginList-repo 21 | check-pluginList-repo 22 | jar 23 | 24 | 25 | 26 | org.codehaus.mojo 27 | findbugs-maven-plugin 28 | 29 | false 30 | true 31 | @findbugsTestDebug@ 32 | 33 | 34 | com.mebigfatguy.fb-contrib 35 | fb-contrib 36 | @fb-contribVersion@ 37 | 38 | 39 | com.h3xstream.findsecbugs 40 | findsecbugs-plugin 41 | @findsecbugsVersion@ 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /src/it/check-pluginList-repo/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | File findbugXdoc = new File(basedir, 'target/findbugs.xml') 19 | assert findbugXdoc.exists() 20 | 21 | File findbugXml = new File(basedir, 'target/findbugsXml.xml') 22 | assert findbugXml.exists() 23 | 24 | 25 | println '**********************************' 26 | println "Checking Findbugs Native XML file" 27 | println '**********************************' 28 | 29 | path = new XmlSlurper().parse(findbugXml) 30 | 31 | allNodes = path.depthFirst().collect{ it } 32 | def findbugsXmlErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 33 | println "BugInstance size is ${findbugsXmlErrors}" 34 | 35 | 36 | println '***************************' 37 | println "Checking xDoc file" 38 | println '***************************' 39 | 40 | def path = new XmlSlurper().parse(findbugXdoc) 41 | 42 | def allNodes = path.depthFirst().collect{ it } 43 | def xdocErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 44 | println "BugInstance size is ${xdocErrors}" 45 | 46 | assert xdocErrors == findbugsXmlErrors 47 | 48 | -------------------------------------------------------------------------------- /src/it/check-skip/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile findbugs:check 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/check-skip/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | check-skip 28 | check-skip 29 | jar 30 | 31 | 32 | 33 | org.codehaus.mojo 34 | findbugs-maven-plugin 35 | 36 | true 37 | false 38 | @findbugsTestDebug@ 39 | High 40 | true 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/it/check-skip/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | assert !(new File(basedir, 'target/site/findbugs.html').exists()) 18 | assert !(new File(basedir, 'target/findbugs.xml').exists()) 19 | assert !(new File(basedir, 'target/findbugsXml.xml').exists()) 20 | -------------------------------------------------------------------------------- /src/it/check-timeout/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile findbugs:check 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = failure 5 | -------------------------------------------------------------------------------- /src/it/check-timeout/pom.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 19 | 4.0.0 20 | 21 | findbugs-maven-plugin.it 22 | common 23 | testing 24 | ../common.xml 25 | 26 | check-timeout 27 | check-timeout 28 | jar 29 | 30 | 31 | 32 | org.codehaus.mojo 33 | findbugs-maven-plugin 34 | 35 | true 36 | 1000 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/it/check/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile findbugs:check 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/check/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | check 28 | check 29 | jar 30 | 31 | 32 | 33 | org.codehaus.mojo 34 | findbugs-maven-plugin 35 | 36 | true 37 | false 38 | @findbugsTestDebug@ 39 | High 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/it/check/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | File findbugsHtml = new File(basedir, 'target/site/findbugs.html') 18 | assert !findbugsHtml.exists() 19 | 20 | File findbugXdoc = new File(basedir, 'target/findbugs.xml') 21 | assert findbugXdoc.exists() 22 | 23 | File findbugXml = new File(basedir, 'target/findbugsXml.xml') 24 | assert findbugXml.exists() 25 | 26 | println '**********************************' 27 | println "Checking Findbugs Native XML file" 28 | println '**********************************' 29 | 30 | path = new XmlSlurper().parse(findbugXml) 31 | 32 | allNodes = path.depthFirst().collect{ it } 33 | def findbugsXmlErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 34 | println "BugInstance size is ${findbugsXmlErrors}" 35 | 36 | 37 | 38 | println '***************************' 39 | println "Checking xDoc file" 40 | println '***************************' 41 | 42 | def path = new XmlSlurper().parse(findbugXdoc) 43 | 44 | xNodes = path.depthFirst().collect{ it } 45 | def xdocErrors = xNodes.findAll {it.name() == 'BugInstance'}.size() 46 | println "BugInstance size is ${xdocErrors}" 47 | 48 | assert xdocErrors == findbugsXmlErrors 49 | 50 | -------------------------------------------------------------------------------- /src/it/effort-default/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/effort-default/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | effort-default 28 | effort-default 29 | jar 30 | 31 | true 32 | 33 | 34 | org.codehaus.mojo 35 | findbugs-maven-plugin 36 | 37 | Default 38 | true 39 | true 40 | true 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/it/effort-max/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/effort-max/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | effort-max 28 | effort-max 29 | jar 30 | 31 | true 32 | 33 | 34 | org.codehaus.mojo 35 | findbugs-maven-plugin 36 | 37 | Max 38 | true 39 | true 40 | true 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/it/effort-min/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/effort-min/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | effort-min 28 | effort-min 29 | jar 30 | 31 | true 32 | 33 | 34 | org.codehaus.mojo 35 | findbugs-maven-plugin 36 | 37 | Min 38 | true 39 | true 40 | true 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/it/empty/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile compiler:testCompile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/empty/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 19 | 4.0.0 20 | findbugs-maven-plugin.it 21 | testing 22 | empty 23 | empty 24 | jar 25 | 26 | 27 | 28 | org.apache.maven.plugins 29 | maven-jxr-plugin 30 | @jxrPluginVersion@ 31 | 32 | 33 | org.codehaus.mojo 34 | findbugs-maven-plugin 35 | 36 | true 37 | true 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /src/it/empty/src/main/resources/app.properties: -------------------------------------------------------------------------------- 1 | nothing=all 2 | -------------------------------------------------------------------------------- /src/it/empty/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | assert !(new File(basedir, 'target/site/findbugs.html').exists()) 19 | 20 | assert !(new File(basedir, 'target/findbugs.xml').exists()) 21 | 22 | assert !(new File(basedir, 'target/findbugsXml.xml').exists()) 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/it/encoding-utf8/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean install site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/encoding-utf8/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | basic-1 28 | encoding-utf8 29 | jar 30 | 31 | UTF-8 32 | 33 | 34 | true 35 | 36 | 37 | org.apache.maven.plugins 38 | maven-jxr-plugin 39 | @jxrPluginVersion@ 40 | 41 | 42 | org.codehaus.mojo 43 | findbugs-maven-plugin 44 | 45 | true 46 | true 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /src/it/exclude-modules/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile findbugs:check 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/exclude-modules/module1/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | exclude-modules 24 | testing 25 | ../pom.xml 26 | 27 | module1 28 | module1 29 | jar 30 | 31 | 32 | 33 | org.codehaus.mojo 34 | findbugs-maven-plugin 35 | 36 | true 37 | false 38 | @findbugsTestDebug@ 39 | ${project.basedir}/src/main/excludeBugs.xml 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/it/exclude-modules/module1/src/main/excludeBugs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/it/exclude-modules/module2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | exclude-modules 24 | testing 25 | ../pom.xml 26 | 27 | module2 28 | module2 29 | jar 30 | 31 | 32 | 33 | org.codehaus.mojo 34 | findbugs-maven-plugin 35 | 36 | true 37 | false 38 | @findbugsTestDebug@ 39 | ${project.basedir}/src/main/excludeBugs.xml 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/it/exclude-modules/module2/src/main/excludeBugs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/it/exclude-modules/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 19 | 4.0.0 20 | 21 | findbugs-maven-plugin.it 22 | common 23 | testing 24 | ../common.xml 25 | 26 | exclude-modules 27 | exclude-modules 28 | pom 29 | 30 | module1 31 | module2 32 | 33 | -------------------------------------------------------------------------------- /src/it/exclude-modules/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | 19 | // check module 1 20 | 21 | 22 | File findbugXml = new File(basedir, "module1/target/findbugsXml.xml") 23 | assert findbugXml.exists() 24 | 25 | def path = new XmlSlurper().parse(findbugXml) 26 | 27 | println '**********************************' 28 | println "Checking Findbugs Native XML file" 29 | println '**********************************' 30 | 31 | 32 | allNodes = path.depthFirst().collect { it } 33 | def findbugsErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 34 | println "BugInstance size is ${findbugsErrors}" 35 | 36 | assert findbugsErrors > 0 37 | 38 | 39 | // check module 2 40 | 41 | findbugXml = new File(basedir, "module2/target/findbugsXml.xml") 42 | assert findbugXml.exists() 43 | 44 | path = new XmlSlurper().parse(findbugXml) 45 | 46 | println '**********************************' 47 | println "Checking Findbugs Native XML file" 48 | println '**********************************' 49 | 50 | allNodes = path.depthFirst().collect { it } 51 | findbugsErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 52 | println "BugInstance size is ${findbugsErrors}" 53 | 54 | assert findbugsErrors > 0 55 | -------------------------------------------------------------------------------- /src/it/exclude-multi/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/exclude/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/excludeBugsFile/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile findbugs:check 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/excludeBugsFile/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | excludeBugsFiles 28 | excludeBugsFiless 29 | jar 30 | 31 | 32 | 33 | org.codehaus.mojo 34 | findbugs-maven-plugin 35 | 36 | true 37 | false 38 | @findbugsTestDebug@ 39 | ${project.basedir}/excludeBugs1.xml,${project.basedir}/excludeBugs2.xml 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/it/excludeBugsFile/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | File findbugXdoc = new File(basedir, 'target/findbugs.xml') 19 | assert findbugXdoc.exists() 20 | 21 | File findbugXml = new File(basedir, 'target/findbugsXml.xml') 22 | assert findbugXml.exists() 23 | 24 | 25 | 26 | println '***************************' 27 | println "Checking xDoc file" 28 | println '***************************' 29 | 30 | def path = new XmlSlurper().parse(findbugXdoc) 31 | 32 | def allNodes = path.depthFirst().collect{ it } 33 | def xdocErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 34 | println "BugInstance size is ${xdocErrors}" 35 | 36 | println '**********************************' 37 | println "Checking Findbugs Native XML file" 38 | println '**********************************' 39 | 40 | path = new XmlSlurper().parse(findbugXml) 41 | 42 | allNodes = path.depthFirst().collect{ it } 43 | def findbugsXmlErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 44 | println "BugInstance size is ${findbugsXmlErrors}" 45 | 46 | assert xdocErrors == findbugsXmlErrors 47 | 48 | -------------------------------------------------------------------------------- /src/it/experimental/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/experimental/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | experimental 28 | experimental 29 | jar 30 | 31 | true 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-jxr-plugin 36 | 37 | 38 | org.codehaus.mojo 39 | findbugs-maven-plugin 40 | 41 | true 42 | Exp 43 | true 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /src/it/include-multi/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/include/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/maxRank/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile findbugs:check 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/maxRank/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | maxRank 28 | maxRank 29 | jar 30 | 31 | 32 | 33 | org.codehaus.mojo 34 | findbugs-maven-plugin 35 | 36 | true 37 | false 38 | @findbugsTestDebug@ 39 | High 40 | 4 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/it/maxRank/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | File findbugXdoc = new File(basedir, 'target/findbugs.xml') 19 | assert findbugXdoc.exists() 20 | 21 | File findbugXml = new File(basedir, 'target/findbugsXml.xml') 22 | assert findbugXml.exists() 23 | 24 | 25 | 26 | println '***************************' 27 | println "Checking xDoc file" 28 | println '***************************' 29 | 30 | def path = new XmlSlurper().parse(findbugXdoc) 31 | 32 | def allNodes = path.depthFirst().collect{ it } 33 | def xdocErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 34 | println "BugInstance size is ${xdocErrors}" 35 | 36 | println '**********************************' 37 | println "Checking Findbugs Native XML file" 38 | println '**********************************' 39 | 40 | path = new XmlSlurper().parse(findbugXml) 41 | 42 | allNodes = path.depthFirst().collect{ it } 43 | def findbugsXmlErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 44 | println "BugInstance size is ${findbugsXmlErrors}" 45 | 46 | assert xdocErrors == findbugsXmlErrors 47 | 48 | -------------------------------------------------------------------------------- /src/it/multi-build/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/multi-build/modules/module-1/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | modules 24 | testing 25 | ../pom.xml 26 | 27 | module-1 28 | module-1 29 | jar 30 | -------------------------------------------------------------------------------- /src/it/multi-build/modules/module-2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | modules 24 | testing 25 | ../pom.xml 26 | 27 | module-2 28 | module-2 29 | jar 30 | -------------------------------------------------------------------------------- /src/it/multi-build/modules/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | multi-build 24 | testing 25 | ../pom.xml 26 | 27 | modules 28 | modules 29 | pom 30 | 31 | 32 | 33 | findbugs-maven-plugin.it 34 | build-tools 35 | testing 36 | 37 | 38 | 39 | 40 | module-1 41 | module-2 42 | 43 | -------------------------------------------------------------------------------- /src/it/multi/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/multi/modules/module-1/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | modules 24 | testing 25 | ../pom.xml 26 | 27 | module-1 28 | module-1 29 | jar 30 | -------------------------------------------------------------------------------- /src/it/multi/modules/module-1/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | ${reports} 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/it/multi/modules/module-1/src/site/xdoc/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | FindBugs Maven Testing 5 | 6 | 7 | 8 |
9 |

10 | 11 |

12 |
13 | 14 |
-------------------------------------------------------------------------------- /src/it/multi/modules/module-2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | modules 24 | testing 25 | ../pom.xml 26 | 27 | module-2 28 | module-2 29 | jar 30 | -------------------------------------------------------------------------------- /src/it/multi/modules/module-2/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | ${reports} 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/it/multi/modules/module-2/src/site/xdoc/index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Findbugs Maven Testing 5 | 6 | 7 | 8 |
9 |

10 | 11 |

12 |
13 | 14 |
-------------------------------------------------------------------------------- /src/it/multi/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 19 | 4.0.0 20 | 21 | findbugs-maven-plugin.it 22 | common 23 | testing 24 | ../common.xml 25 | 26 | multi 27 | multi 28 | pom 29 | 30 | modules 31 | 32 | -------------------------------------------------------------------------------- /src/it/nested/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/nested/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | nested 28 | nested 29 | jar 30 | 31 | true 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-jxr-plugin 36 | @jxrPluginVersion@ 37 | 38 | 39 | org.codehaus.mojo 40 | findbugs-maven-plugin 41 | 42 | true 43 | true 44 | true 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /src/it/no-src/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile compiler:testCompile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/no-src/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | no-src 28 | no-src 29 | jar 30 | 31 | ${project.basedir}/src/main/java 32 | ${project.basedir}/src/test/java 33 | 34 | 35 | 36 | 37 | org.codehaus.mojo 38 | findbugs-maven-plugin 39 | 40 | true 41 | true 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /src/it/no-src/src/test/java/EmptyJUnitTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Codehaus. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import junit.framework.TestCase; 18 | 19 | /** 20 | * 21 | * @author garvin 22 | */ 23 | public class EmptyJUnitTest extends TestCase 24 | { 25 | 26 | public EmptyJUnitTest( String testName ) 27 | { 28 | super( testName ); 29 | } 30 | 31 | @Override 32 | protected void setUp() throws Exception 33 | { 34 | super.setUp(); 35 | } 36 | 37 | @Override 38 | protected void tearDown() throws Exception 39 | { 40 | super.tearDown(); 41 | } 42 | // TODO add test methods here. The name must begin with 'test'. For example: 43 | // public void testHello() {} 44 | } 45 | -------------------------------------------------------------------------------- /src/it/no-src/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | 19 | assert (new File(basedir, 'target/site/index.html').exists()) 20 | assert (new File(basedir, 'target/findbugs.xml').exists()) 21 | assert (new File(basedir, 'target/findbugsXml.xml').exists()) 22 | -------------------------------------------------------------------------------- /src/it/no-testsrc/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile compiler:testCompile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/no-testsrc/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | no-testsrc 28 | no-testsrc 29 | jar 30 | 31 | ${project.basedir}/src/test/java 32 | 33 | 34 | 35 | 36 | org.codehaus.mojo 37 | findbugs-maven-plugin 38 | 39 | true 40 | true 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /src/it/omitVisitors/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/omitVisitors/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | omitVisitor 28 | omitVisitor 29 | jar 30 | 31 | true 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-jxr-plugin 36 | @jxrPluginVersion@ 37 | 38 | 39 | org.codehaus.mojo 40 | findbugs-maven-plugin 41 | 42 | true 43 | true 44 | FindDeadLocalStores,UnreadFields 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /src/it/onlyAnalyze/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/onlyAnalyze/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | onlyAnalyze 28 | onlyAnalyze 29 | jar 30 | 31 | true 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-jxr-plugin 36 | @jxrPluginVersion@ 37 | 38 | 39 | org.codehaus.mojo 40 | findbugs-maven-plugin 41 | 42 | true 43 | true 44 | BC_Unconfirmed_Cast 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /src/it/pluginList-repo/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/pluginList-repo/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 10 | 4.0.0 11 | 12 | findbugs-maven-plugin.it 13 | common 14 | testing 15 | ../common.xml 16 | 17 | pluginList-repo 18 | pluginList-repo 19 | jar 20 | 21 | true 22 | 23 | 24 | org.codehaus.mojo 25 | findbugs-maven-plugin 26 | 27 | true 28 | true 29 | 30 | 31 | com.mebigfatguy.fb-contrib 32 | fb-contrib 33 | @fb-contribVersion@ 34 | 35 | 36 | com.h3xstream.findsecbugs 37 | findsecbugs-plugin 38 | @findsecbugsVersion@ 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/it/pluginList/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/pluginList/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | pluginList 28 | pluginList 29 | jar 30 | 31 | true 32 | 33 | 34 | org.codehaus.mojo 35 | findbugs-maven-plugin 36 | 37 | true 38 | true 39 | 40 | http://repo1.maven.org/maven2/com/mebigfatguy/fb-contrib/fb-contrib/@fb-contribVersion@/fb-contrib-@fb-contribVersion@.jar, 41 | http://repo1.maven.org/maven2/com/h3xstream/findsecbugs/findsecbugs-plugin/@findsecbugsVersion@/findsecbugs-plugin-@findsecbugsVersion@.jar 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /src/it/relaxed/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/relaxed/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 4.0.0 20 | 21 | findbugs-maven-plugin.it 22 | common 23 | testing 24 | ../common.xml 25 | 26 | relaxed 27 | relaxed 28 | jar 29 | 30 | true 31 | 32 | 33 | org.codehaus.mojo 34 | findbugs-maven-plugin 35 | 36 | true 37 | true 38 | true 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /src/it/site-brazil/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 4.0.0 20 | 21 | findbugs-maven-plugin.it 22 | common 23 | testing 24 | ../common.xml 25 | 26 | site-brazil 27 | site-brazil 28 | jar 29 | 30 | true 31 | 32 | 33 | org.apache.maven.plugins 34 | maven-site-plugin 35 | @sitePluginVersion@ 36 | 37 | pt 38 | 39 | 40 | 41 | org.apache.maven.plugins 42 | maven-jxr-plugin 43 | @jxrPluginVersion@ 44 | 45 | 46 | org.codehaus.mojo 47 | findbugs-maven-plugin 48 | 49 | true 50 | true 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /src/it/site-default/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | site-default 28 | site-default 29 | jar 30 | 31 | true 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-site-plugin 36 | 37 | zz 38 | 39 | 40 | 41 | org.apache.maven.plugins 42 | maven-jxr-plugin 43 | 44 | 45 | org.codehaus.mojo 46 | findbugs-maven-plugin 47 | 48 | true 49 | true 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /src/it/site-french/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | site-french 28 | site-french 29 | jar 30 | 31 | true 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-site-plugin 36 | 37 | fr 38 | 39 | 40 | 41 | org.apache.maven.plugins 42 | maven-jxr-plugin 43 | 44 | 45 | org.codehaus.mojo 46 | findbugs-maven-plugin 47 | 48 | true 49 | true 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /src/it/site-spanish/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | site-spanish 28 | site-spanish 29 | jar 30 | 31 | true 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-site-plugin 36 | 37 | es 38 | 39 | 40 | 41 | org.apache.maven.plugins 42 | maven-jxr-plugin 43 | 44 | 45 | org.codehaus.mojo 46 | findbugs-maven-plugin 47 | 48 | true 49 | true 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /src/it/skip/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile compiler:testCompile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/skip/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | skip-test 28 | skip-test 29 | jar 30 | 31 | true 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-jxr-plugin 36 | @jxrPluginVersion@ 37 | 38 | 39 | org.codehaus.mojo 40 | findbugs-maven-plugin 41 | 42 | true 43 | true 44 | true 45 | true 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /src/it/skip/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | assert !(new File(basedir, 'target/site/findbugs.html').exists()) 19 | assert !(new File(basedir, 'target/findbugs.xml').exists()) 20 | assert !(new File(basedir, 'target/findbugsXml.xml').exists()) 21 | 22 | -------------------------------------------------------------------------------- /src/it/skipEmpty/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/skipEmpty/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 19 | 4.0.0 20 | 21 | 29 | 30 | findbugs-maven-plugin.it 31 | testing 32 | skipEmpty 33 | skipEmpty 34 | jar 35 | 36 | 37 | 38 | org.apache.maven.plugins 39 | maven-jxr-plugin 40 | @jxrPluginVersion@ 41 | 42 | 43 | org.codehaus.mojo 44 | findbugs-maven-plugin 45 | 46 | true 47 | true 48 | true 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/it/skipEmpty/src/main/java/test/App.java: -------------------------------------------------------------------------------- 1 | package test; 2 | 3 | /** 4 | * Hello world! 5 | * 6 | */ 7 | public class App 8 | { 9 | 10 | public static void main( String[] args ) 11 | { 12 | System.out.println( "Hello World!" ); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/it/skipEmpty/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | File findbugsHtml = new File(basedir, 'target/site/findbugs.html') 19 | assert !findbugsHtml.exists() 20 | 21 | File findbugXdoc = new File(basedir, 'target/findbugs.xml') 22 | assert !findbugXdoc.exists() 23 | 24 | File findbugXml = new File(basedir, 'target/findbugsXml.xml') 25 | assert findbugXml.exists() 26 | 27 | 28 | println '**********************************' 29 | println "Checking Findbugs Native XML file" 30 | println '**********************************' 31 | 32 | path = new XmlSlurper().parse(findbugXml) 33 | 34 | allNodes = path.depthFirst().collect{ it } 35 | def findbugsXmlErrors = allNodes.findAll {it.name() == 'BugInstance'}.size() 36 | println "BugInstance size is ${findbugsXmlErrors}" 37 | 38 | assert findbugsXmlErrors == 0 39 | 40 | -------------------------------------------------------------------------------- /src/it/threaded/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | invoker.parallelThreads = 2 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/threaded/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | threaded 28 | threaded 29 | jar 30 | 31 | true 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-jxr-plugin 36 | @jxrPluginVersion@ 37 | 38 | 39 | org.codehaus.mojo 40 | findbugs-maven-plugin 41 | 42 | true 43 | true 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /src/it/threshold-experimental/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/threshold-experimental/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | threshold-experimental 28 | threshold-experimental 29 | jar 30 | 31 | true 32 | 33 | 34 | org.codehaus.mojo 35 | findbugs-maven-plugin 36 | 37 | Exp 38 | true 39 | true 40 | true 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/it/threshold-high/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/threshold-high/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | threshold-high 28 | threshold-high 29 | jar 30 | 31 | true 32 | 33 | 34 | org.codehaus.mojo 35 | findbugs-maven-plugin 36 | 37 | High 38 | true 39 | true 40 | true 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/it/threshold-low/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/threshold-low/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | threshold-low 28 | threshold-low 29 | jar 30 | 31 | true 32 | 33 | 34 | org.codehaus.mojo 35 | findbugs-maven-plugin 36 | 37 | Low 38 | true 39 | true 40 | true 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/it/trace/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/trace/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | trace 28 | trace 29 | jar 30 | 31 | true 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-jxr-plugin 36 | @jxrPluginVersion@ 37 | 38 | 39 | org.codehaus.mojo 40 | findbugs-maven-plugin 41 | 42 | true 43 | true 44 | true 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /src/it/userPrefs-override/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/userPrefs-override/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | userPrefs-override 28 | userPrefs-override 29 | jar 30 | 31 | true 32 | 33 | 34 | org.codehaus.mojo 35 | findbugs-maven-plugin 36 | 37 | ${project.basedir}/edu.umd.cs.findbugs.core.prefs 38 | true 39 | true 40 | Max 41 | true 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /src/it/userPrefs/invoker.properties: -------------------------------------------------------------------------------- 1 | invoker.goals = clean compile site 2 | 3 | # The expected result of the build, possible values are "success" (default) and "failure" 4 | invoker.buildResult = success 5 | -------------------------------------------------------------------------------- /src/it/userPrefs/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 20 | 4.0.0 21 | 22 | findbugs-maven-plugin.it 23 | common 24 | testing 25 | ../common.xml 26 | 27 | userPrefs 28 | userPrefs 29 | jar 30 | 31 | true 32 | 33 | 34 | org.codehaus.mojo 35 | findbugs-maven-plugin 36 | 37 | ${project.basedir}/edu.umd.cs.findbugs.core.prefs 38 | true 39 | true 40 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | compile 7 | 8 | 9 | 10 | 11 | true 12 | true 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/main/resources/findbugs.properties: -------------------------------------------------------------------------------- 1 | report.findbugs.column.bug=Bug 2 | report.findbugs.column.bugs=Bugs 3 | report.findbugs.column.category=Category 4 | report.findbugs.column.class=Class 5 | report.findbugs.column.classes=Classes 6 | report.findbugs.column.details=Details 7 | report.findbugs.column.errors=Errors 8 | report.findbugs.column.files=Files 9 | report.findbugs.column.missingclasses=Missing Classes 10 | report.findbugs.column.line=Line 11 | report.findbugs.column.priority=Priority 12 | report.findbugs.description=Generates a source code report with the FindBugs Library. 13 | report.findbugs.detailslink=http://findbugs.sourceforge.net/bugDescriptions.html 14 | report.findbugs.files=Files 15 | report.findbugs.summary=Summary 16 | report.findbugs.javasources=Found java sources (Class files): 17 | report.findbugs.link=http://findbugs.sourceforge.net 18 | report.findbugs.linktitle=The following document contains the results of 19 | report.findbugs.name=FindBugs 20 | report.findbugs.noline=Not available 21 | report.findbugs.reporttitle=FindBugs Bug Detector Report 22 | report.findbugs.sourceRoot=Using source root: 23 | report.findbugs.testSourceRoot=Using test source root: 24 | report.findbugs.threshold=Threshold is 25 | report.findbugs.effort=Effort is 26 | report.findbugs.jxrplugin.artifactid=maven-jxr-plugin 27 | report.findbugs.versiontitle=FindBugs Version is 28 | report.findbugs.coreplugin=findbugs 29 | -------------------------------------------------------------------------------- /src/main/resources/findbugs_en.properties: -------------------------------------------------------------------------------- 1 | report.findbugs.column.bug=Bug 2 | report.findbugs.column.bugs=Bugs 3 | report.findbugs.column.category=Category 4 | report.findbugs.column.class=Class 5 | report.findbugs.column.classes=Classes 6 | report.findbugs.column.details=Details 7 | report.findbugs.column.errors=Errors 8 | report.findbugs.column.files=Files 9 | report.findbugs.column.missingclasses=Missing Classes 10 | report.findbugs.column.line=Line 11 | report.findbugs.column.priority=Priority 12 | report.findbugs.description=Generates a source code report with the FindBugs Library. 13 | report.findbugs.detailslink=http://findbugs.sourceforge.net/bugDescriptions.html 14 | report.findbugs.files=Files 15 | report.findbugs.summary=Summary 16 | report.findbugs.javasources=Found java sources (Class files): 17 | report.findbugs.link=http://findbugs.sourceforge.net 18 | report.findbugs.linktitle=The following document contains the results of 19 | report.findbugs.name=FindBugs 20 | report.findbugs.noline=Not available 21 | report.findbugs.reporttitle=FindBugs Bug Detector Report 22 | report.findbugs.sourceRoot=Using source root: 23 | report.findbugs.testSourceRoot=Using test source root: 24 | report.findbugs.threshold=Threshold is 25 | report.findbugs.effort=Effort is 26 | report.findbugs.jxrplugin.artifactid=maven-jxr-plugin 27 | report.findbugs.versiontitle=FindBugs Version is 28 | report.findbugs.coreplugin=findbugs 29 | -------------------------------------------------------------------------------- /src/main/resources/findbugs_es.properties: -------------------------------------------------------------------------------- 1 | report.findbugs.column.bug=Bug 2 | report.findbugs.column.bugs=Bugs 3 | report.findbugs.column.category=Categoría 4 | report.findbugs.column.class=Clase 5 | report.findbugs.column.classes=Clases 6 | report.findbugs.column.details=Detalles 7 | report.findbugs.column.errors=Errores 8 | report.findbugs.column.files=Archivos 9 | report.findbugs.column.missingclasses=Classes Faltantes 10 | report.findbugs.column.line=Línea 11 | report.findbugs.column.priority=Prioridad 12 | report.findbugs.description=Genera un reporte del código fuente con la Librería FindBugs. 13 | report.findbugs.detailslink=http://findbugs.sourceforge.net/bugDescriptions.html 14 | report.findbugs.files=Archivos 15 | report.findbugs.summary=Resumen 16 | report.findbugs.javasources=Fuentes java encontrados (Archivos class): 17 | report.findbugs.link=http://findbugs.sourceforge.net 18 | report.findbugs.linktitle=El siguiente documento contiene los resultados de 19 | report.findbugs.name=FindBugs 20 | report.findbugs.noline=No disponible 21 | report.findbugs.reporttitle=Reporte FindBugs Bug Detector 22 | report.findbugs.sourceRoot=Utilizando raíz de fuentes: 23 | report.findbugs.testSourceRoot=Utilizando raíz de fuentes de test: 24 | report.findbugs.threshold=El umbral es 25 | report.findbugs.effort=El esfuerzo es 26 | report.findbugs.jxrplugin.artifactid=maven-jxr-plugin 27 | report.findbugs.versiontitle=La versión de FindBugs es 28 | report.findbugs.coreplugin=findbugs 29 | -------------------------------------------------------------------------------- /src/main/resources/findbugs_fr.properties: -------------------------------------------------------------------------------- 1 | report.findbugs.column.bug=Bug 2 | report.findbugs.column.bugs=Bugs 3 | report.findbugs.column.category=Cat\u00e9gorie 4 | report.findbugs.column.class=Classe 5 | report.findbugs.column.classes=Classes 6 | report.findbugs.column.details=D\u00e9tails 7 | report.findbugs.column.errors=Erreurs 8 | report.findbugs.column.files=Fichiers 9 | report.findbugs.column.missingclasses=Classes Manquantes 10 | report.findbugs.column.line=Ligne 11 | report.findbugs.column.priority=Priorit\u00e9 12 | report.findbugs.description=G\u00e9n\u00e8re un rapport du code source avec la librairie FindBugs. 13 | report.findbugs.detailslink=http://findbugs.sourceforge.net/bugDescriptions.html 14 | report.findbugs.files=Fichiers 15 | report.findbugs.summary=R\u00e9sum\u00e9 16 | report.findbugs.javasources=Sources java trouv\u00e9es (Classes): 17 | report.findbugs.link=http://findbugs.sourceforge.net 18 | report.findbugs.linktitle=Le document suivant contient les r\u00e9sultats du 19 | report.findbugs.name=FindBugs 20 | report.findbugs.noline=Non disponible 21 | report.findbugs.reporttitle=Rapport FindBugs de d\u00e9tection des bugs 22 | report.findbugs.sourceRoot=Utilise la racine des sources : 23 | report.findbugs.testSourceRoot=Utilise la racine des sources de test : 24 | report.findbugs.threshold=La limite est 25 | report.findbugs.effort=L'effort est 26 | report.findbugs.jxrplugin.artifactid=maven-jxr-plugin 27 | report.findbugs.versiontitle=La version de FindBugs est 28 | report.findbugs.coreplugin=findbugs 29 | -------------------------------------------------------------------------------- /src/main/resources/findbugs_no_NO.properties: -------------------------------------------------------------------------------- 1 | report.findbugs.column.bug=Bug 2 | report.findbugs.column.bugs=Bugs 3 | report.findbugs.column.category=Kategori 4 | report.findbugs.column.class=Klasse 5 | report.findbugs.column.classes=Klasser 6 | report.findbugs.column.details=Detaljer 7 | report.findbugs.column.errors=Feil 8 | report.findbugs.column.files=Filer 9 | report.findbugs.column.missingclasses=Manglende Klasser 10 | report.findbugs.column.line=Linje 11 | report.findbugs.column.priority=Prioritet 12 | report.findbugs.description=Genererer en kildekode rapport med FindBugs biblioteket 13 | report.findbugs.detailslink=http://findbugs.sourceforge.net/bugDescriptions.html 14 | report.findbugs.files=Filer 15 | report.findbugs.summary=Sammendrag 16 | report.findbugs.javasources=Fant java kildefiler (Klasse files): 17 | report.findbugs.link=http://findbugs.sourceforge.net 18 | report.findbugs.linktitle=Dokumentet best�r av f�lgende resultater 19 | report.findbugs.name=FindBugs 20 | report.findbugs.noline=Ikke tilgjengelig 21 | report.findbugs.reporttitle=FindBugs Bug Deteksjons Report 22 | report.findbugs.sourceRoot=Bruker kildetre: 23 | report.findbugs.testSourceRoot=Bruker test kildetre: 24 | report.findbugs.threshold=Grenseverdi er 25 | report.findbugs.effort=Innsatsvilje er 26 | report.findbugs.jxrplugin.artifactid=maven-jxr-plugin 27 | report.findbugs.versiontitle=FindBugs Versjon er 28 | report.findbugs.coreplugin=findbugs 29 | -------------------------------------------------------------------------------- /src/main/resources/findbugs_pt_BR.properties: -------------------------------------------------------------------------------- 1 | report.findbugs.column.bug=Bug 2 | report.findbugs.column.bugs=Bugs 3 | report.findbugs.column.category=Categoria 4 | report.findbugs.column.class=Classe 5 | report.findbugs.column.classes=Classes 6 | report.findbugs.column.details=Detalhes 7 | report.findbugs.column.errors=Erros 8 | report.findbugs.column.files=Arquivos 9 | report.findbugs.column.line=Linhas 10 | report.findbugs.column.missingclasses=Classes n\u00E3o Encontradas 11 | report.findbugs.column.priority=Prioridade 12 | report.findbugs.description=Gera um relat\u00F3rio do c\u00F3digo fonte utilizando o FindBugs. 13 | report.findbugs.detailslink=http://findbugs.sourceforge.net/bugDescriptions.html 14 | report.findbugs.effort=Esfor\u00E7o\: 15 | report.findbugs.files=Arquivos 16 | report.findbugs.javasources=C\u00F3digo Java encontrado\: 17 | report.findbugs.jxrplugin.artifactid=maven-jxr-plugin 18 | report.findbugs.link=http://findbugs.sourceforge.net 19 | report.findbugs.linktitle=O seguinte documento cont\u00E9m os resultados do 20 | report.findbugs.name=FindBugs 21 | report.findbugs.noline=Indispon\u00EDvel 22 | report.findbugs.reporttitle=Relat\u00F3rio do FindBugs Bug Detector 23 | report.findbugs.sourceRoot=Verificando c\u00F3digo a partir de\: 24 | report.findbugs.summary=Sum\u00E1rio 25 | report.findbugs.testSourceRoot=Verificando c\u00F3digo de testes a partir de\: 26 | report.findbugs.threshold=Limite\: 27 | report.findbugs.versiontitle=A vers\u00E3o do FindBugs \u00E9 a 28 | report.findbugs.coreplugin=findbugs 29 | -------------------------------------------------------------------------------- /src/main/tools/annotations.pom: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.google.code.findbugs 4 | annotations 5 | @findbugs.version@ 6 | jar 7 | http://findbugs.sourceforge.net/ 8 | FindBugs-Annotations 9 | Annotation supports the FindBugs tool 10 | 11 | 12 | GNU Lesser Public License 13 | http://www.gnu.org/licenses/lgpl.html 14 | repo 15 | 16 | 17 | 18 | scm:svn:http://findbugs.googlecode.com/svn/trunk/ 19 | scm:svn:https://findbugs.googlecode.com/svn/trunk/ 20 | http://findbugs.googlecode.com/svn/trunk/ 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/main/tools/bcel.pom: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.google.code.findbugs 4 | bcel 5 | @findbugs.version@ 6 | jar 7 | http://findbugs.sourceforge.net/ 8 | FindBugs-bcel 9 | Modified BCEL for Findbugs 10 | 11 | 12 | The Apache Software License, Version 2.0 13 | http://www.apache.org/licenses/LICENSE-2.0.txt 14 | repo 15 | 16 | 17 | 18 | scm:svn:http://findbugs.googlecode.com/svn/trunk/ 19 | scm:svn:https://findbugs.googlecode.com/svn/trunk/ 20 | http://findbugs.googlecode.com/svn/trunk/ 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/main/tools/cleanup.sh: -------------------------------------------------------------------------------- 1 | rm *-bundle.jar 2 | rm *.xml 3 | -------------------------------------------------------------------------------- /src/main/tools/fb2bundle.groovy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env groovy 2 | 3 | def cli = new CliBuilder(usage:'fb2bundle -f findbugs.home -version version') 4 | cli.h(longOpt: 'help', 'usage information') 5 | cli.v(argName: 'version', longOpt: 'version', required: true, args: 1, type:GString, 'Findbugs version') 6 | 7 | def opt = cli.parse(args) 8 | if (!opt) { return } 9 | if (opt.h) opt.usage() 10 | def findbugsVersion = opt.v 11 | 12 | println "findbugsVersion is ${findbugsVersion}" 13 | println "Done parsing" 14 | 15 | def cmdPrefix = """""" 16 | 17 | println "os.name is " + System.getProperty("os.name") 18 | 19 | if (System.getProperty("os.name").toLowerCase().contains("windows")) cmdPrefix = """cmd /c """ 20 | 21 | def modules = ["annotations", "bcel", "findbugs", "findbugs-ant", "jFormatString", "jsr305" ] 22 | 23 | modules.each(){ module -> 24 | println "Processing ${module}........" 25 | cmd = cmdPrefix + """mvn repository:bundle-pack -B -DgroupId=com.google.code.findbugs -DartifactId=${module} -Dversion=${findbugsVersion}""" 26 | proc = cmd.execute() 27 | println proc.text 28 | } 29 | 30 | -------------------------------------------------------------------------------- /src/main/tools/fb2local.groovy: -------------------------------------------------------------------------------- 1 | #!groovy 2 | 3 | // fb2local -f /opt/findbugs/findbugs-2.0.0-rc2 -v 2.0.0-rc2 4 | 5 | def findbugsHome = System.getenv("FINDBUGS_HOME") 6 | def antBuilder = new AntBuilder() 7 | 8 | def cli = new CliBuilder(usage:'fb2local -f findbugs.home -version version') 9 | cli.h(longOpt: 'help', 'usage information') 10 | cli.f(argName: 'home', longOpt: 'home', required: false, args: 1, type:GString, 'Findbugs home directory') 11 | cli.v(argName: 'version', longOpt: 'version', required: true, args: 1, type:GString, 'Findbugs version') 12 | 13 | def opt = cli.parse(args) 14 | if (!opt) { return } 15 | if (opt.h) opt.usage() 16 | if (opt.f) findbugsHome = opt.f 17 | def findbugsVersion = opt.v 18 | 19 | println "findbugsHome is ${findbugsHome}" 20 | println "findbugsVersion is ${findbugsVersion}" 21 | println "Done parsing" 22 | 23 | def cmdPrefix = """""" 24 | 25 | println "os.name is " + System.getProperty("os.name") 26 | 27 | if (System.getProperty("os.name").toLowerCase().contains("windows")) cmdPrefix = """cmd /c """ 28 | 29 | def modules = ["annotations", "bcel", "findbugs", "findbugs-ant", "jFormatString", "jsr305" ] 30 | 31 | modules.each(){ module -> 32 | antBuilder.copy(file: new File("${module}.pom"), toFile: new File("${module}.xml"), overwrite: true ) { 33 | filterset() { 34 | filter(token: "findbugs.version", value: "${findbugsVersion}") 35 | } 36 | } 37 | 38 | cmd = cmdPrefix + """mvn install:install-file -DpomFile=${module}.xml -Dfile=${findbugsHome}/lib/${module}.jar -DgroupId=com.google.code.findbugs -DartifactId=${module} -Dversion=${findbugsVersion} -Dpackaging=jar""" 39 | proc = cmd.execute() 40 | println proc.text 41 | } 42 | 43 | antBuilder.delete(file: "pom.xml") 44 | 45 | 46 | -------------------------------------------------------------------------------- /src/main/tools/fb2repo.groovy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env groovy 2 | 3 | // fb2repo -f /opt/findbugs/findbugs-2.0.0 -v 2.0.0 -url file:///Users/user/NetBeansProjects/findbugs-repo/rc-repository 4 | // fb2repo -f /opt/findbugs/findbugs-2.0.0 -v 2.0.0 -url file:///Users/user/NetBeansProjects/findbugs-repo/release-repository 5 | 6 | def findbugsHome = System.getenv("FINDBUGS_HOME") 7 | def antBuilder = new AntBuilder() 8 | 9 | def cli = new CliBuilder(usage:'fb2repo -f findbugs.home -version version -u repositoryURL') 10 | cli.h(longOpt: 'help', 'usage information') 11 | cli.f(argName: 'home', longOpt: 'home', required: false, args: 1, type:GString, 'Findbugs home directory') 12 | cli.v(argName: 'version', longOpt: 'version', required: true, args: 1, type:GString, 'Findbugs version') 13 | cli.u(argName: 'url', longOpt: 'url', required: true, args: 1, type:GString, 'Repository URL') 14 | 15 | def opt = cli.parse(args) 16 | if (!opt) { return } 17 | if (opt.h) opt.usage() 18 | if (opt.f) findbugsHome = opt.f 19 | def findbugsVersion = opt.v 20 | def repoUrl = opt.u 21 | 22 | println "findbugsHome is ${findbugsHome}" 23 | println "findbugsVersion is ${findbugsVersion}" 24 | println "Done parsing" 25 | 26 | def cmdPrefix = """""" 27 | 28 | println "os.name is " + System.getProperty("os.name") 29 | 30 | if (System.getProperty("os.name").toLowerCase().contains("windows")) cmdPrefix = """cmd /c """ 31 | 32 | def modules = ["annotations", "bcel", "findbugs", "findbugs-ant", "jFormatString", "jsr305" ] 33 | 34 | modules.each(){ module -> 35 | antBuilder.copy(file: new File("${module}.pom"), toFile: new File("${module}.xml"), overwrite: true ) { 36 | filterset() { 37 | filter(token: "findbugs.version", value: "${findbugsVersion}") 38 | } 39 | } 40 | 41 | cmd = cmdPrefix + """mvn deploy:deploy-file -DpomFile=${module}.xml -Dfile=${findbugsHome}/lib/${module}.jar -DgroupId=com.google.code.findbugs -DartifactId=${module} -Dversion=${findbugsVersion} -Durl=${repoUrl} -Dpackaging=jar""" 42 | proc = cmd.execute() 43 | println proc.text 44 | antBuilder.delete(file: "pom.xml") 45 | } 46 | 47 | -------------------------------------------------------------------------------- /src/main/tools/findbugs-ant.pom: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.google.code.findbugs 4 | findbugs-ant 5 | @findbugs.version@ 6 | jar 7 | http://findbugs.sourceforge.net/ 8 | FindBugs-AntTask 9 | AntTask to run Findbugs 10 | 11 | 12 | GNU Lesser Public License 13 | http://www.gnu.org/licenses/lgpl.html 14 | repo 15 | 16 | 17 | 18 | scm:svn:http://findbugs.googlecode.com/svn/trunk/ 19 | scm:svn:https://findbugs.googlecode.com/svn/trunk/ 20 | http://findbugs.googlecode.com/svn/trunk/ 21 | 22 | 23 | 24 | com.google.code.findbugs 25 | findbugs 26 | @findbugs.version@ 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /src/main/tools/jFormatString.pom: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.google.code.findbugs 4 | jFormatString 5 | @findbugs.version@ 6 | jar 7 | http://findbugs.sourceforge.net/ 8 | FindBugs-jFormatString 9 | jFormatString for Findbugs 10 | 11 | 12 | GNU Lesser Public License 13 | http://www.gnu.org/licenses/lgpl.html 14 | repo 15 | 16 | 17 | 18 | scm:svn:http://findbugs.googlecode.com/svn/trunk/ 19 | scm:svn:https://findbugs.googlecode.com/svn/trunk/ 20 | http://findbugs.googlecode.com/svn/trunk/ 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/main/tools/jsr305.pom: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.google.code.findbugs 4 | jsr305 5 | @findbugs.version@ 6 | jar 7 | http://findbugs.sourceforge.net/ 8 | FindBugs-jsr305 9 | JSR305 Annotations for Findbugs 10 | 11 | 12 | The Apache Software License, Version 2.0 13 | http://www.apache.org/licenses/LICENSE-2.0.txt 14 | repo 15 | 16 | 17 | 18 | scm:svn:http://findbugs.googlecode.com/svn/trunk/ 19 | scm:svn:https://findbugs.googlecode.com/svn/trunk/ 20 | http://findbugs.googlecode.com/svn/trunk/ 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/site/apt/examples/violationChecking.apt.vm: -------------------------------------------------------------------------------- 1 | ------ 2 | Violation Checking 3 | ------ 4 | 2008-06-11 5 | ------ 6 | 7 | ~~ Licensed to the Apache Software Foundation (ASF) under one 8 | ~~ or more contributor license agreements. See the NOTICE file 9 | ~~ distributed with this work for additional information 10 | ~~ regarding copyright ownership. The ASF licenses this file 11 | ~~ to you under the Apache License, Version 2.0 (the 12 | ~~ "License"); you may not use this file except in compliance 13 | ~~ with the License. You may obtain a copy of the License at 14 | ~~ 15 | ~~ http://www.apache.org/licenses/LICENSE-2.0 16 | ~~ 17 | ~~ Unless required by applicable law or agreed to in writing, 18 | ~~ software distributed under the License is distributed on an 19 | ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 20 | ~~ KIND, either express or implied. See the License for the 21 | ~~ specific language governing permissions and limitations 22 | ~~ under the License. 23 | 24 | ~~ NOTE: For help with the syntax of this file, see: 25 | ~~ http://maven.apache.org/doxia/references/apt-format.html 26 | 27 | Violation Checking 28 | 29 | The <<>> goal allows you to configure your build to fail if any errors are found 30 | in the FindBugs report. 31 | 32 | The following code fragment enables the check in a build during the <<>> phase. 33 | The check will fail if any of the filter triggers in the include file are met. 34 | 35 | +-----+ 36 | 37 | ... 38 | 39 | 40 | 41 | org.codehaus.mojo 42 | findbugs-maven-plugin 43 | ${projectVersion} 44 | 45 | Max 46 | Low 47 | true 48 | 49 | 50 | 51 | 52 | check 53 | 54 | 55 | 56 | 57 | 58 | 59 | ... 60 | 61 | +-----+ 62 | -------------------------------------------------------------------------------- /src/site/apt/index.apt.vm: -------------------------------------------------------------------------------- 1 | ------ 2 | Introduction 3 | ------ 4 | ------ 5 | ------ 6 | 7 | 8 | 9 | FindBugs Maven Plugin 10 | 11 | *Status: Since Findbugs is no longer maintained, please use Spotbugs which has a Maven plugin. It is located at {{{https://spotbugs.github.io/}here}}. 12 | 13 | 14 | *Please Note - This version is using Findbugs ${findbugsVersion}. 15 | 16 | FindBugs looks for bugs in Java programs. It is based on the concept of bug patterns. A bug pattern is a code idiom that is often an error. Bug patterns arise for a variety of reasons: 17 | 18 | * Difficult language features 19 | 20 | * Misunderstood API methods 21 | 22 | * Misunderstood invariants when code is modified during maintenance 23 | 24 | * Garden variety mistakes: typos, use of the wrong boolean operator 25 | 26 | FindBugs uses static analysis to inspect Java bytecode for occurrences of bug patterns. We have found that FindBugs finds real errors in most Java software. Because its analysis is sometimes imprecise, FindBugs can report false warnings, which are warnings that do not indicate real errors. In practice, the rate of false warnings reported by FindBugs is generally less than 50%. 27 | 28 | FindBugs is free software, available under the terms of the Lesser GNU Public License. It is written in Java, and can be run with any virtual machine compatible with Java 7. It can analyze programs written for any version of Java. FindBugs was originally developed by Bill Pugh. It is maintained by Bill Pugh, David Hovemeyer, and a team of volunteers. 29 | 30 | FindBugs uses BCEL to analyze Java bytecode. It uses dom4j for XML manipulation. 31 | 32 | This introduction is an excerpt from the Facts Sheet at {{{http://findbugs.sourceforge.net/factSheet.html}FindBugs home page}}. 33 | 34 | To see more documentation about FindBugs' options, please see the {{{http://findbugs.sourceforge.net/manual/index.html}FindBugs Manual}}. 35 | 36 | *Please Note 37 | 38 | As of version 3.0.0, you will need to use JDK 7 to run this plugin. This is a requirement imposed by Findbugs. 39 | -------------------------------------------------------------------------------- /src/site/fml/faq.fml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | Is there an easy way to generate the aggregate report ? 8 | 9 |

10 | Unfortunately Maven's internal support for report aggregation 11 | is rather poor and does have a number of limitations. 12 |

13 |

14 | This may be addressed in the future by a module like 15 | dashboard 16 | to get an aggregate report. 17 |

18 | 19 | 20 | 21 | How do I avoid OutOfMemory errors? 22 | 23 |

24 | When running findbugs on a project, the default heap size might not be enough 25 | to complete the build. For now there is no way to fork findbugs and run with 26 | its own memory requirements, but the following system variable will allow you 27 | to do so for Maven: 28 |

29 | export MAVEN_OPTS=-Xmx384M 30 |

31 |

32 |

33 | You can also use the fork option which will for a new JVM. You then use the maxHeap option to control the heap size.

34 |

35 |

36 |
37 |
38 | 39 | -------------------------------------------------------------------------------- /src/site/resources/examples/css/print.css: -------------------------------------------------------------------------------- 1 | #banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, #leftColumn, #navColumn { 2 | display: none !important; 3 | } 4 | #bodyColumn, body.docs div.docs { 5 | margin: 0 !important; 6 | border: none !important 7 | } 8 | -------------------------------------------------------------------------------- /src/site/resources/examples/css/site.css: -------------------------------------------------------------------------------- 1 | /* You can override this file with your own styles */ -------------------------------------------------------------------------------- /src/site/resources/examples/images/collapsed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gleclaire/findbugs-maven-plugin/214c884c4e17102492f602c93a03f2e629506260/src/site/resources/examples/images/collapsed.gif -------------------------------------------------------------------------------- /src/site/resources/examples/images/expanded.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gleclaire/findbugs-maven-plugin/214c884c4e17102492f602c93a03f2e629506260/src/site/resources/examples/images/expanded.gif -------------------------------------------------------------------------------- /src/site/resources/examples/images/external.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gleclaire/findbugs-maven-plugin/214c884c4e17102492f602c93a03f2e629506260/src/site/resources/examples/images/external.png -------------------------------------------------------------------------------- /src/site/resources/examples/images/icon_error_sml.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gleclaire/findbugs-maven-plugin/214c884c4e17102492f602c93a03f2e629506260/src/site/resources/examples/images/icon_error_sml.gif -------------------------------------------------------------------------------- /src/site/resources/examples/images/icon_info_sml.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gleclaire/findbugs-maven-plugin/214c884c4e17102492f602c93a03f2e629506260/src/site/resources/examples/images/icon_info_sml.gif -------------------------------------------------------------------------------- /src/site/resources/examples/images/icon_success_sml.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gleclaire/findbugs-maven-plugin/214c884c4e17102492f602c93a03f2e629506260/src/site/resources/examples/images/icon_success_sml.gif -------------------------------------------------------------------------------- /src/site/resources/examples/images/icon_warning_sml.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gleclaire/findbugs-maven-plugin/214c884c4e17102492f602c93a03f2e629506260/src/site/resources/examples/images/icon_warning_sml.gif -------------------------------------------------------------------------------- /src/site/resources/examples/images/logos/build-by-maven-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gleclaire/findbugs-maven-plugin/214c884c4e17102492f602c93a03f2e629506260/src/site/resources/examples/images/logos/build-by-maven-black.png -------------------------------------------------------------------------------- /src/site/resources/examples/images/logos/build-by-maven-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gleclaire/findbugs-maven-plugin/214c884c4e17102492f602c93a03f2e629506260/src/site/resources/examples/images/logos/build-by-maven-white.png -------------------------------------------------------------------------------- /src/site/resources/examples/images/logos/maven-feather.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gleclaire/findbugs-maven-plugin/214c884c4e17102492f602c93a03f2e629506260/src/site/resources/examples/images/logos/maven-feather.png -------------------------------------------------------------------------------- /src/site/resources/examples/images/newwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gleclaire/findbugs-maven-plugin/214c884c4e17102492f602c93a03f2e629506260/src/site/resources/examples/images/newwindow.png -------------------------------------------------------------------------------- /src/site/resources/examples/xref-test/allclasses-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Classes 7 | 8 | 9 | 10 | 11 |

All Classes

12 | 13 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref-test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | basic-1 testing Reference 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | <body> 17 | <h1>Frame Alert</h1> 18 | <p> 19 | You don't have frames. Go <a href="overview-summary.html">here</a> 20 | </p> 21 | </body> 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref-test/org/codehaus/mojo/findbugsmavenplugin/it/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package org.codehaus.mojo.findbugsmavenplugin.it 7 | 8 | 9 | 10 | 11 |

12 | org.codehaus.mojo.findbugsmavenplugin.it 13 |

14 | 15 |

Classes

16 | 17 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref-test/overview-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference 7 | 8 | 9 | 10 | 11 |

12 | All Classes 13 |

14 | 15 |

Packages

16 | 17 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref-test/overview-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference 7 | 8 | 9 | 10 |
11 | 15 |
16 |
17 | 25 |
26 | 27 |

basic-1 testing Reference

28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 40 | 41 | 42 |
Packages
38 | org.codehaus.mojo.findbugsmavenplugin.it 39 |
43 | 44 |
45 | 49 |
50 |
51 | 59 |
60 | 61 |
62 | 65 | 66 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref-test/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* Javadoc style sheet */ 2 | /* Define colors, fonts and other style attributes here to override the defaults */ 3 | body { 4 | background-color: #fff; 5 | font-family: Arial, Helvetica, sans-serif; 6 | } 7 | 8 | a:link { 9 | color: #00f; 10 | } 11 | a:visited { 12 | color: #00a; 13 | } 14 | 15 | a:active, a:hover { 16 | color: #f30 !important; 17 | } 18 | 19 | ul, li { 20 | list-style-type:none; 21 | margin:0; 22 | padding:0; 23 | } 24 | 25 | table td { 26 | padding: 3px; 27 | border: 1px solid #000; 28 | } 29 | table { 30 | width:100%; 31 | border: 1px solid #000; 32 | border-collapse: collapse; 33 | } 34 | 35 | div.overview { 36 | background-color:#ddd; 37 | padding: 4px 4px 4px 0; 38 | } 39 | div.overview li, div.framenoframe li { 40 | display: inline; 41 | } 42 | div.framenoframe { 43 | text-align: center; 44 | font-size: x-small; 45 | } 46 | div.framenoframe li { 47 | margin: 0 3px 0 3px; 48 | } 49 | div.overview li { 50 | margin:3px 3px 0 3px; 51 | padding: 4px; 52 | } 53 | li.selected { 54 | background-color:#888; 55 | color: #fff; 56 | font-weight: bold; 57 | } 58 | 59 | table.summary { 60 | margin-bottom: 20px; 61 | } 62 | table.summary td, table.summary th { 63 | font-weight: bold; 64 | text-align: left; 65 | padding: 3px; 66 | } 67 | table.summary th { 68 | background-color:#036; 69 | color: #fff; 70 | } 71 | table.summary td { 72 | background-color:#eee; 73 | border: 1px solid black; 74 | } 75 | 76 | em { 77 | color: #A00; 78 | } 79 | em.comment { 80 | color: #390; 81 | } 82 | .string { 83 | color: #009; 84 | } 85 | 86 | #overview { 87 | padding:2px; 88 | } 89 | 90 | hr { 91 | height: 1px; 92 | color: #000; 93 | } 94 | 95 | /* JXR style sheet */ 96 | .jxr_comment 97 | { 98 | color: #390; 99 | } 100 | 101 | .jxr_javadoccomment 102 | { 103 | color: #A00; 104 | } 105 | 106 | .jxr_string 107 | { 108 | color: #009; 109 | } 110 | 111 | .jxr_keyword 112 | { 113 | color: #000; 114 | } 115 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/A.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | A xref 5 | 6 | 7 | 8 |
View Javadoc
 9 | 1   class A {
10 | 2   	public static void main(String args[]) {
11 | 3   		System.out.println(args[0].replace("x", "y"));
12 | 4   	}
13 | 5   }
14 | 
15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/AnnotationTest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AnnotationTest xref 5 | 6 | 7 | 8 |
View Javadoc
 9 | 1   import edu.umd.cs.findbugs.annotations.CheckReturnValue;
10 | 2   import edu.umd.cs.findbugs.annotations.Priority;
11 | 3   
12 | 4   class AnnotationTest {
13 | 5   	@CheckReturnValue(priority = Priority.HIGH)
14 | 6   	int f() {
15 | 7   		return 42;
16 | 8   	}
17 | 9   }
18 | 
19 |
20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/AssignedOnlyInCtor.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AssignedOnlyInCtor xref 5 | 6 | 7 | 8 |
View Javadoc
 9 | 1   public class AssignedOnlyInCtor {
10 | 2   	private int value;
11 | 3   
12 | 4   	public AssignedOnlyInCtor(int value) {
13 | 5   		this.value = value;
14 | 6   	}
15 | 7   
16 | 8   	public int getValue() {
17 | 9   		return value;
18 | 10  	}
19 | 11  
20 | 12  }
21 | 
22 |
23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/AssumeUnsignedBytes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AssumeUnsignedBytes xref 5 | 6 | 7 | 8 |
View Javadoc
 9 | 1   import edu.umd.cs.findbugs.annotations.ExpectWarning;
10 | 2   
11 | 3   class AssumeUnsignedBytes {
12 | 4   
13 | 5   	@ExpectWarning("INT")
14 | 6   	int find200(byte[] b) {
15 | 7   		for (int i = 0; i < b.length; i++)
16 | 8   			if (b[i] == 200)
17 | 9   				return i;
18 | 10  		return -1;
19 | 11  	}
20 | 12  }
21 | 
22 |
23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/UseInitCause.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | UseInitCause xref 5 | 6 | 7 | 8 |
View Javadoc
 9 | 1   import java.io.BufferedReader;
10 | 2   import java.io.IOException;
11 | 3   
12 | 4   
13 | 5   public class UseInitCause {
14 | 6   
15 | 7   	public String firstLine(BufferedReader r) {
16 | 8   		try {
17 | 9   			return r.readLine();
18 | 10  		} catch (IOException e) {
19 | 11  			throw (RuntimeException) new RuntimeException("IO Error").initCause(e);
20 | 12  		}
21 | 13  	}
22 | 14  
23 | 15  }
24 | 
25 |
26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/UselessFinalize.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | UselessFinalize xref 5 | 6 | 7 | 8 |
View Javadoc
 9 | 1   class UselessFinalize {
10 | 2   	@Override
11 | 3   	protected void finalize() throws Throwable {
12 | 4   		super.finalize();
13 | 5   	}
14 | 6   }
15 | 
16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/UserAss3rtion.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | UserAss3rtion xref 5 | 6 | 7 | 8 |
View Javadoc
 9 | 1   public class UserAss3rtion {
10 | 2   	public static void makeSureItIsOK(boolean cond) {
11 | 3   		if (!cond)
12 | 4   			throw new IllegalStateException();
13 | 5   	}
14 | 6   
15 | 7   	public void f(Object o) {
16 | 8   		UserAss3rtion.makeSureItIsOK(o != null);
17 | 9   		System.out.println(o.hashCode());
18 | 10  	}
19 | 11  }
20 | 
21 |
22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/badNaming/package1/A.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | A xref 5 | 6 | 7 | 8 |
View Javadoc
 9 | 1   package badNaming.package1;
10 | 2   
11 | 3   public class A {
12 | 4   
13 | 5   }
14 | 
15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/badNaming/package1/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package badNaming.package1 7 | 8 | 9 | 10 | 11 |

12 | badNaming.package1 13 |

14 | 15 |

Classes

16 | 17 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/badNaming/package1/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package badNaming.package1 7 | 8 | 9 | 10 |
11 | 17 |
18 |
19 | 27 |
28 | 29 |

Package badNaming.package1

30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 42 | 43 | 44 |
Class Summary
40 | A 41 |
45 | 46 |
47 | 53 |
54 |
55 | 63 |
64 |
65 | 68 | 69 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/badNaming/package2/A.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | A xref 5 | 6 | 7 | 8 |
View Javadoc
 9 | 1   package badNaming.package2;
10 | 2   
11 | 3   public class A {
12 | 4   
13 | 5   }
14 | 
15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/badNaming/package2/AnInterface.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AnInterface xref 5 | 6 | 7 | 8 |
View Javadoc
 9 | 1   package badNaming.package2;
10 | 2   
11 | 3   public interface AnInterface {
12 | 4   	public void test2(A a);
13 | 5   
14 | 6   }
15 | 
16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/badNaming/package2/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package badNaming.package2 7 | 8 | 9 | 10 | 11 |

12 | badNaming.package2 13 |

14 | 15 |

Classes

16 | 17 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/equals/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package equals 7 | 8 | 9 | 10 | 11 |

12 | equals 13 |

14 | 15 |

Classes

16 | 17 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/equals/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package equals 7 | 8 | 9 | 10 |
11 | 17 |
18 |
19 | 27 |
28 | 29 |

Package equals

30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 42 | 43 | 44 |
Class Summary
40 | ArrayEquality 41 |
45 | 46 |
47 | 53 |
54 |
55 | 63 |
64 |
65 | 68 | 69 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/gcUnrelatedTypes/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package gcUnrelatedTypes 7 | 8 | 9 | 10 | 11 |

12 | gcUnrelatedTypes 13 |

14 | 15 |

Classes

16 | 17 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | basic-1 testing Reference 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | <body> 17 | <h1>Frame Alert</h1> 18 | <p> 19 | You don't have frames. Go <a href="overview-summary.html">here</a> 20 | </p> 21 | </body> 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/jsr305/AlwaysBlue.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AlwaysBlue xref 5 | 6 | 7 | 8 |
View Javadoc
 9 | 1   package jsr305;
10 | 2   
11 | 3   import java.lang.annotation.Retention;
12 | 4   import java.lang.annotation.RetentionPolicy;
13 | 5   
14 | 6   import javax.annotation.meta.TypeQualifierNickname;
15 | 7   import javax.annotation.meta.When;
16 | 8   
17 | 9   @ExhaustiveQualifier(value=ExhaustiveQualifier.Color.BLUE, when=When.ALWAYS)
18 | 10  @TypeQualifierNickname
19 | 11  @Retention(RetentionPolicy.RUNTIME)
20 | 12  public @interface AlwaysBlue {
21 | 13  
22 | 14  }
23 | 
24 |
25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/jsr305/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package jsr305 7 | 8 | 9 | 10 | 11 |

12 | jsr305 13 |

14 | 15 |

Classes

16 | 17 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/jsr305/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package jsr305 7 | 8 | 9 | 10 |
11 | 17 |
18 |
19 | 27 |
28 | 29 |

Package jsr305

30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 42 | 43 | 44 |
Class Summary
40 | AlwaysBlue 41 |
45 | 46 |
47 | 53 |
54 |
55 | 63 |
64 |
65 | 68 | 69 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/npe/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package npe 7 | 8 | 9 | 10 | 11 |

12 | npe 13 |

14 | 15 |

Classes

16 | 17 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/nullnessAnnotations/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package nullnessAnnotations 7 | 8 | 9 | 10 | 11 |

12 | nullnessAnnotations 13 |

14 | 15 |

Classes

16 | 17 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/obligation/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package obligation 7 | 8 | 9 | 10 | 11 |

12 | obligation 13 |

14 | 15 |

Classes

16 | 17 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/overview-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference 7 | 8 | 9 | 10 | 11 |

12 | All Classes 13 |

14 | 15 |

Packages

16 | 17 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* Javadoc style sheet */ 2 | /* Define colors, fonts and other style attributes here to override the defaults */ 3 | body { 4 | background-color: #fff; 5 | font-family: Arial, Helvetica, sans-serif; 6 | } 7 | 8 | a:link { 9 | color: #00f; 10 | } 11 | a:visited { 12 | color: #00a; 13 | } 14 | 15 | a:active, a:hover { 16 | color: #f30 !important; 17 | } 18 | 19 | ul, li { 20 | list-style-type:none; 21 | margin:0; 22 | padding:0; 23 | } 24 | 25 | table td { 26 | padding: 3px; 27 | border: 1px solid #000; 28 | } 29 | table { 30 | width:100%; 31 | border: 1px solid #000; 32 | border-collapse: collapse; 33 | } 34 | 35 | div.overview { 36 | background-color:#ddd; 37 | padding: 4px 4px 4px 0; 38 | } 39 | div.overview li, div.framenoframe li { 40 | display: inline; 41 | } 42 | div.framenoframe { 43 | text-align: center; 44 | font-size: x-small; 45 | } 46 | div.framenoframe li { 47 | margin: 0 3px 0 3px; 48 | } 49 | div.overview li { 50 | margin:3px 3px 0 3px; 51 | padding: 4px; 52 | } 53 | li.selected { 54 | background-color:#888; 55 | color: #fff; 56 | font-weight: bold; 57 | } 58 | 59 | table.summary { 60 | margin-bottom: 20px; 61 | } 62 | table.summary td, table.summary th { 63 | font-weight: bold; 64 | text-align: left; 65 | padding: 3px; 66 | } 67 | table.summary th { 68 | background-color:#036; 69 | color: #fff; 70 | } 71 | table.summary td { 72 | background-color:#eee; 73 | border: 1px solid black; 74 | } 75 | 76 | em { 77 | color: #A00; 78 | } 79 | em.comment { 80 | color: #390; 81 | } 82 | .string { 83 | color: #009; 84 | } 85 | 86 | #overview { 87 | padding:2px; 88 | } 89 | 90 | hr { 91 | height: 1px; 92 | color: #000; 93 | } 94 | 95 | /* JXR style sheet */ 96 | .jxr_comment 97 | { 98 | color: #390; 99 | } 100 | 101 | .jxr_javadoccomment 102 | { 103 | color: #A00; 104 | } 105 | 106 | .jxr_string 107 | { 108 | color: #009; 109 | } 110 | 111 | .jxr_keyword 112 | { 113 | color: #000; 114 | } 115 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/uselessThread/UsefulThread.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | UsefulThread xref 5 | 6 | 7 | 8 |
View Javadoc
 9 | 1   package uselessThread;
10 | 2   
11 | 3   class UsefulThread extends Thread {
12 | 4   	public UsefulThread() {
13 | 5   		super("Usefull-" + System.currentTimeMillis());
14 | 6   	}
15 | 7   
16 | 8   	@Override
17 | 9   	public void run() {
18 | 10  		System.out.println("I am a useful thread!");
19 | 11  	}
20 | 12  }
21 | 
22 |
23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/uselessThread/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package uselessThread 7 | 8 | 9 | 10 | 11 |

12 | uselessThread 13 |

14 | 15 |

Classes

16 | 17 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/site/resources/examples/xref/uselessThread/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | basic-1 testing Reference Package uselessThread 7 | 8 | 9 | 10 |
11 | 17 |
18 |
19 | 27 |
28 | 29 |

Package uselessThread

30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 42 | 43 | 44 |
Class Summary
40 | UsefulThread 41 |
45 | 46 |
47 | 53 |
54 |
55 | 63 |
64 |
65 | 68 | 69 | -------------------------------------------------------------------------------- /src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | FindBugs Maven Plugin 8 | 9 | 10 | 11 | org.apache.maven.skins 12 | maven-fluido-skin 13 | 1.6 14 | 15 | 16 | 17 | 18 | false 19 | true 20 | » 21 | 22 | gleclaire/findbugs-maven-plugin 23 | right 24 | red 25 | 26 | 27 | findbugs-maven-plugin 28 | thin-badge 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | --------------------------------------------------------------------------------