Clone this repo:
  1. 775a1ac Stop migrating `@Suppress` to `@Ignore`. `@Suppress` is nearly dead! by Kurt Alfred Kluever · 2 days ago master
  2. 54bc491 PUBLIC: Stop flagging `@Ignore` on JUnit3 tests. Internally, we've made our legacy JUnit3 runner skip tests with `@Ignore` (unknown commit). Externally, basically nobody uses JUnit3 anymore (and if someone does make this mistake, they'll quickly notice anyways). by Kurt Alfred Kluever · 2 days ago
  3. c8511ce Test that `SuggestedFixes.replaceIncludingComments` removes Markdown Javadoc. by cpovirk · 5 days ago
  4. 63937ff Bump org.checkerframework:checker-qual from 4.2.0 to 4.2.1 in the dependencies group by dependabot[bot] · 6 days ago
  5. c75dd09 Move PreferPreconditions to JavaCodeClarity to run on changed lines by Liam Miller-Cushon · 8 days ago

Error Prone

Error Prone is a static analysis tool for Java that catches common programming mistakes at compile-time.

public class ShortSet {
  public static void main (String[] args) {
    Set<Short> s = new HashSet<>();
    for (short i = 0; i < 100; i++) {
      s.add(i);
      s.remove(i - 1);
    }
    System.out.println(s.size());
  }
}
error: [CollectionIncompatibleType] Argument 'i - 1' should not be passed to this method;
its type int is not compatible with its collection's type argument Short
      s.remove(i - 1);
              ^
    (see https://errorprone.info/bugpattern/CollectionIncompatibleType)
1 error

Getting Started

Our documentation is at errorprone.info.

Error Prone works with Bazel, Maven, Ant, and Gradle. See our installation instructions for details.

Developing Error Prone

Developing and building Error Prone is documented on the wiki.

Links