Error Prone is a static analysis tool developed by Google that identifies common Java programming mistakes during compilation. It extends the capabilities of the Java compiler by checking source code for patterns that are syntactically valid but potentially incorrect.
The software integrates with the standard Java compilation process rather than requiring developers to run a separate analysis stage. This allows errors to be reported alongside ordinary compiler diagnostics, making it easier to identify problems as code is written.
Error Prone is particularly useful for detecting subtle mistakes that may escape conventional testing. Its checks cover a broad range of issues involving collections, expressions, method calls, resource handling and other Java language constructs.
This is free and open source software.
Key Features
- Integrates with the Java compiler to perform additional static analysis during compilation.
- Detects common programming mistakes using an extensive collection of predefined bug patterns.
- Identifies suspicious operations involving collections, equality comparisons, exceptions and API usage.
- Reports diagnostic messages at the relevant source code location.
- Supports configurable warning and error severities for individual checks.
- Allows checks to be enabled or disabled according to project requirements.
- Provides suggested fixes for many detected problems.
- Supports automated source code modifications using its patching functionality.
- Refaster rules allow developers to describe source code transformations using Java examples.
- Extensible architecture supports custom bug checkers developed for project-specific requirements.
- Can suppress selected diagnostics using annotations.
- Integrates with build systems including Bazel, Maven, Gradle and Ant.
- Cross-platform support – runs on Linux, macOS, and Windows.
Website: github.com/google/error-prone
Support:
Developer: Google Inc
License: Apache License 2.0
Error Prone is written in Java. Learn Java with our recommended free books and free tutorials.
Related Software
| Java Linter Tools | |
|---|---|
| SpotBugs | Find bugs in Java code |
| PMD | Extensible cross-language static code analyzer |
| Error Prone | Catch common Java mistakes |
| NullAway | Eliminate NPEs in Java code |
| Infer | Static analysis tool for Java, C++, Objective-C, and C |
| Checkstyle | Write Java code that adheres to a coding standard |
| Checker Framework | Pluggable type-checking for Java |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.