Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daggerok/findbugs-example

FindBugs gradle/maven plugins usage...
https://github.com/daggerok/findbugs-example

findbugs findbugs-gradle-plugin findbugs-maven-plugin findbugs-plugin gradle gradle-plugin maven maven-plugin

Last synced: 30 days ago
JSON representation

FindBugs gradle/maven plugins usage...

Awesome Lists containing this project

README

        

= findbugs-example image:https://travis-ci.org/daggerok/findbugs-example.svg?branch=master["Build Status", link="https://travis-ci.org/daggerok/findbugs-example"] image:https://gitlab.com/daggerok/findbugs-example/badges/master/build.svg["Build Status", link="https://gitlab.com/daggerok/findbugs-example/-/jobs"] image:https://img.shields.io/bitbucket/pipelines/daggerok/findbugs-example.svg["Build Status", link="https://bitbucket.com/daggerok/findbugs-example"]

//tag::content[]
.maven
[source,bash]
----
# ./mvnw clean verify site
./mvnw
# output:
# [java] Warnings generated: 15
open ./target/site/findbugs.html
----

.gradle
[source,bash]
----
# ./gradlew check
./gradlew

# output:
# > Task :findbugsMain
# FindBugs rule violations were found. See the report at: file://path/to/findbugs-example/build/findbugs/main.html
# ...

open ./build/findbugs/main.html
----

.findbugs gradle/maven plugins usage:
[source,bash]
----
# gradle: ./gradlew findbugs$sourceSetName
./gradlew findbugsMain
./gradlew findbugsTest

# maven:
./mvnw findbugs:gui
./mvnw findbugs:check
./mvnw findbugs:findbugs
./mvnw findbugs:help -Ddetail=true -Dgoal=check
./mvnw findbugs:help -Ddetail=true -Dgoal=findbugs
----

.maven spotbugs (find security bugs)
[source,bash]
----
# get compiled code for analysis (it can be done one time)
mvnw clean compile

# get analysis for security issues
mvnw spotbugs:check

# sorted issues by categories in gui
mvnw spotbugs:gui

# get reports you can saw in /target/site/project-reports.html (include both for comparing)
mvnw site
----

links:

- link:https://daggerok.github.io/findbugs-example[documentation on GitHub pages]
- link:https://daggerok.gitlab.io/findbugs-example[documentation on GitLab pages]

other links:

- link:https://gleclaire.github.io/findbugs-maven-plugin/plugin-info.html[Maven plugin]
- link:https://stackoverflow.com/questions/8564208/how-to-generate-a-html-report-for-findbugs-with-maven-3-x[How to generate a html report for findbugs with Maven 3.x]
- link:http://www.sw-engineering-candies.com/blog-1/findbugstmwarningsbysample-parti[FindBugs testing]
- link:https://docs.gradle.org/current/userguide/findbugs_plugin.html[TODO: Gradle plugin]
//- link:https://docs.gitlab.com/ce/ci/docker/using_docker_build.html[some GitLab docker runner info]

generated by link:https://github.com/daggerok/generator-jvm/[generator-jvm] yeoman generator (java-spring-boot_1.x)
//end::content[]