{"id":35222328,"url":"https://github.com/rife2/bld-spotbugs","last_synced_at":"2026-04-04T12:57:33.714Z","repository":{"id":323396612,"uuid":"1091959571","full_name":"rife2/bld-spotbugs","owner":"rife2","description":"bld extension to perform static code analysis with SpotBugs","archived":false,"fork":false,"pushed_at":"2026-03-28T00:28:48.000Z","size":16424,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-28T04:58:09.192Z","etag":null,"topics":["bld","build-system","build-tool","build-tool-plugin","code-analysis","findbugs","java","spotbugs","static"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rife2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-07T19:20:59.000Z","updated_at":"2026-03-28T00:24:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rife2/bld-spotbugs","commit_stats":null,"previous_names":["rife2/bld-spotbugs"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rife2/bld-spotbugs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rife2%2Fbld-spotbugs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rife2%2Fbld-spotbugs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rife2%2Fbld-spotbugs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rife2%2Fbld-spotbugs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rife2","download_url":"https://codeload.github.com/rife2/bld-spotbugs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rife2%2Fbld-spotbugs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31400460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bld","build-system","build-tool","build-tool-plugin","code-analysis","findbugs","java","spotbugs","static"],"created_at":"2025-12-30T00:20:00.976Z","updated_at":"2026-04-04T12:57:33.709Z","avatar_url":"https://github.com/rife2.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [bld](https://rife2.com/bld) Extension to Perform Static Code Analysis with [SpotBugs](https://spotbugs.github.io/)\n\n[![License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Java](https://img.shields.io/badge/java-17%2B-blue)](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)\n[![bld](https://img.shields.io/badge/2.3.0-FA9052?label=bld\u0026labelColor=2392FF)](https://rife2.com/bld)\n[![Release](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Frepo.rife2.com%2Freleases%2Fcom%2Fuwyn%2Frife2%2Fbld-spotbugs%2Fmaven-metadata.xml\u0026color=blue)](https://repo.rife2.com/#/releases/com/uwyn/rife2/bld-spotbugs)\n[![Snapshot](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Frepo.rife2.com%2Fsnapshots%2Fcom%2Fuwyn%2Frife2%2Fbld-spotbugs%2Fmaven-metadata.xml\u0026label=snapshot)](https://repo.rife2.com/#/snapshots/com/uwyn/rife2/bld-spotbugs)\n[![GitHub CI](https://github.com/rife2/bld-spotbugs/actions/workflows/bld.yml/badge.svg)](https://github.com/rife2/bld-spotbugs/actions/workflows/bld.yml)\n\nTo install the latest version, add the following to the `lib/bld/bld-wrapper.properties` file:\n\n```properties\nbld.extension-pmd=com.uwyn.rife2:bld-spotbugs\n```\n\nFor more information, please refer to the [extensions](https://github.com/rife2/bld/wiki/Extensions) documentation.\n\nTo install a binary distribution of SpotBugs please refer to its\n[installation instruction](https://spotbugs.readthedocs.io/en/latest/installing.html).\n\n## Check Source with SpotBugs\n\nTo check for bugs in the main source code, add the following to your build file:\n\n```java\n@BuildCommand(summary = \"Runs SpotBugs on this project\")\npublic void spotbugs() throws Exception {\n    new SpotBugsOperation()\n            .fromProject(this)\n            .home(\"/path/to/spotbugs/\")\n            .execute();\n}\n```\n\n```console\n./bld compile spotbugs\n```\n\nThe output will look something like:\n\n```console\n[spotbugs] auxclasspath[build/main, lib/compile/foo-2.3.0.jar, ...]\n[spotbugs] sourcepath[src/main/java, src/main/resources]\n[spotbugs] analyze[build/main]\n[spotbugs] Found 5 potential bugs in 2 classes\n[spotbugs] file:///dev/example/src/main/java/com/example/Example.java:39\n    DCN_NULLPOINTER_EXCEPTION (https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#dcn-nullpointer-exception)\n    Method: hasSpace, Class: com.example.Example, Priority: 2, Rank: 17, Category: STYLE\n        --\u003e NullPointerException caught\n[spotbugs] file:///dev/example/src/main/java/com/example/Sample.java:27\n    EI_EXPOSE_REP (https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#ei-expose-rep)\n    Method: getList, Field: mutableList, Class: com.example.Sample, Priority: 2, Rank: 18, Category: MALICIOUS_CODE\n        --\u003e May expose internal representation by returning reference to mutable object\n...\n```\n\nTo also check the test source code, add the following to your build file:\n\n```java\n@BuildCommand(summary = \"Runs SpotBugs on this project\")\npublic void spotbugs() throws Exception {\n    new SpotBugsOperation()\n            .fromProject(this, true) // check src/main and src/test\n            .spotBugsJar(\"/path/to/spotbugs/lib/spotbugs.jar\")\n            .execute();\n}\n```\n\n```console\n./bld compile spotbugs\n```\n\nPlease check the [SpotBugsOperation documentation](https://rife2.github.io/bld-spotbugs/rife/bld/extension/SpotBugsOperation.html#method-summary) for all available configuration options.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frife2%2Fbld-spotbugs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frife2%2Fbld-spotbugs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frife2%2Fbld-spotbugs/lists"}