# spotbugs/spotbugs

SpotBugs is FindBugs' successor. A tool for static analysis to look for bugs in Java code.

Repository: https://github.com/spotbugs/spotbugs
Canonical: https://ross.abutalabs.com/products/spotbugs
Homepage: https://spotbugs.github.io/
Language: Java
License: LGPL-2.1
License Family: copyleft
Topics: findbugs, static-analysis, code-analysis, static-code-analysis, linter, hacktoberfest
Last push: 2026-08-25T14:58:04+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 3589, "days_push": 8, "days_rel": 13, "gap_med": 24, "n_releases_24m": 14}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3925, forks 675 (observed 2026-08-28T04:08:29.841220+00:00)

## What it is
SpotBugs is a static analysis tool that finds bugs in Java bytecode, serving as the community-maintained successor to the abandoned FindBugs project. It detects over 400 bug patterns and integrates with build tools and IDEs like Maven, Gradle, Eclipse, and IntelliJ IDEA.

## Use cases
- find bugs in java code with static analysis
- replace findbugs since it is abandoned
- run static code analysis in gradle build
- detect null pointer dereferences and bad practices in java
- scan java project for security vulnerabilities with find-sec-bugs
- integrate bug detection into maven or ant builds
- check java code quality in CI pipeline

## When to choose
- you maintain a Java or JVM-language codebase and want automated bug detection
- you need a maintained replacement for FindBugs
- you want static analysis integrated into Maven, Gradle, Ant, or your IDE
- you need extensible bug detectors via plugins like fb-contrib or find-sec-bugs

## When to avoid
- your project is not on the JVM (it analyzes Java bytecode only)
- you need dynamic analysis, runtime profiling, or test coverage rather than static checks
- you want a full SonarQube-style quality platform rather than a focused bug finder

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, security, code-review, developer-tools
- domain: developer-tools, testing, security
- platform: jvm, cross-platform, cli
- tags: static-analysis, findbugs-successor, java, bug-detection, gradle-plugin, maven-plugin, eclipse-plugin

## Member repositories
- spotbugs/spotbugs (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:29.841220+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:44.575271+00:00, confidence not recorded.
  - readme: https://github.com/spotbugs/spotbugs (fetched 2026-08-28T04:08:29.841220+00:00, sha e07826324b22)
  - homepage: https://spotbugs.github.io/ (fetched 2026-08-29T09:18:37.277782+00:00, sha 53356d2b92b5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
