Skip to content

Recreates errors in Google "Error Prone" Java analyzer.

License

Notifications You must be signed in to change notification settings

ksilz/check-error-prone

Repository files navigation

How to use this repository

Validates various issues for Error Prone. Here's how to run it:

  • Make sure that you have Java 11 installed.
  • Clone this repository.
  • Run gradlew.bat (Windows) or ./gradlew (Mac, Linux).
  • The application runs fine.
  • Edit build.gradle:
    • Comment out the line with excludedPaths = ".*/issues/.*", currently line 103. This would include all files for Error Prone.
    • Uncomment one of the excludedPaths line below.
    • Save.
  • Run gradlew.bat (Windows) or ./gradlew (Mac, Linux) again.
  • You'll get an error.

Which issues are included?

Currently, this repository recreates these issues:

  • #1479: Lombok - MultiVariableDeclaration: IllegalArgumentException "Start [449] should not be after end [-1]" (Preconditions.java:300)
  • #1430: IllegalArgumentException from AlmostJavadoc pattern on project using lombok
  • #1481: Lombok false positive: MissingOverride for "@EqualsAndHashCode(callSuper = true)" when extending base class
  • #1482: Lombok false positive: Var for "@EqualsAndHashCode"

About

Recreates errors in Google "Error Prone" Java analyzer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages