# google/error-prone

Catch common Java mistakes as compile-time errors

Repository: https://github.com/google/error-prone
Canonical: https://ross.abutalabs.com/products/error-prone
Homepage: https://errorprone.info
Language: Java
License: Apache-2.0
License Family: permissive
Topics: java, static-analysis
Last push: 2026-08-26T23:17:58+00:00

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

## Adoption (not part of the score)
Stars 7225, forks 815 (observed 2026-08-28T04:09:57.600252+00:00)

## What it is
Error Prone is Google's static analysis tool that hooks into the Java compiler to catch common programming mistakes as compile-time errors. It integrates with Bazel, Maven, Gradle, and Ant, and suggests fixes for detected bugs.

## Use cases
- catch common Java bugs at compile time
- flag incompatible collection type arguments during builds
- add static analysis checks to Maven or Gradle builds
- detect dead exceptions and refactoring mistakes
- enforce code quality checks across a Java codebase

## When to choose
- you build Java projects with Bazel, Maven, Gradle, or Ant and want compile-time bug detection
- you want to eliminate classes of bugs before they reach production
- you want suggested fixes surfaced directly in compiler errors

## When to avoid
- you are not working in the Java/JVM ecosystem
- you must build with an older JDK (requires JDK 21+ for current versions)
- you need full runtime or dynamic analysis rather than static compile-time checks

## Facets
- artifact type: library
- maturity: active
- function: linter, testing, developer-tools
- domain: developer-tools, programming-languages, testing
- platform: jvm, cli
- tags: static-analysis, compile-time-checks, bug-detection, java-compiler-plugin, code-quality

## Member repositories
- google/error-prone (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:57.600252+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-29T17:39:47.973045+00:00, confidence not recorded.
  - readme: https://github.com/google/error-prone (fetched 2026-08-28T04:09:57.600252+00:00, sha 27e932a16bcc)
  - homepage: https://errorprone.info (fetched 2026-08-29T08:34:38.732561+00:00, sha 53a2c15c5f28)
  - site_page: https://errorprone.info/docs/installation (fetched 2026-08-29T08:34:38.741676+00:00, sha a341655aa5e0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
