error-prone icon indicating copy to clipboard operation
error-prone copied to clipboard

Catch common Java mistakes as compile-time errors

Results 366 error-prone issues
Sort by recently updated
recently updated
newest added

Using error-prone 2.10.0. Here's a trivial example of a record where I get a warning that the `x` value is never being used, even though there are public methods that...

Remove ProtosAsKeyOfSetOrMap. This was added a fair while ago, and not enabled.

Turn down DivZero. It's aiming to replicate a javac warning, which I think we enable as an error anyway?

### Description of the problem / feature request: `./gradlew clean compileJava` throws this error ``` Service.java:1: error: An unhandled exception was thrown by the Error Prone static analysis plugin. package...

lombok

This bug tracks publishing the 'ApiDiffer' tool that is used to generate `core/src/main/java/com/google/errorprone/bugpatterns/apidiff/8to11diff.binarypb`. See also https://github.com/google/error-prone/pull/2598#issuecomment-1101641594

``` /Users/ben/projects/caffeine/caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:16: error: An unhandled exception was thrown by the Error Prone static analysis plugin. package com.github.benmanes.caffeine.cache; ^ Please report this at https://github.com/google/error-prone/issues/new and include the following: error-prone version: 2.12.1...

Strongly type a parameter as a MethodSymbol to make it a bit clearer what it refers to.

Handle all annotations with the simple name `Generated` in `-XepDisableWarningsInGeneratedCode` Follow-up to https://github.com/google/error-prone/commit/4d6a0cce2d2ccc6a945352c2ba38201f753994bd See also https://github.com/google/error-prone/issues/3094