PicnicSupermarket/error-prone-support

Introduce a Maven flag or configuration option to apply suggestions automatically

Opened this issue · 0 comments

Problem

It is possible to use ./apply-error-prone-suggestions.sh to apply suggestions provided by EPS but it requires to checkout and build EPS locally, presenting an additional hindrance/inconvenience.

Description of the proposed new feature

I'd like to apply all or most suggestions provided by EP(S) without having to check out build EPS as it is mentioned in the readme.

In particular newly adopting projects would benefit from a quick & easy way to view EPS' suggestions in the resulting git diff.

In essence, I am looking for the convenience equivalent of fmt-maven-plugin's mvn fmt:format feature, configurable by bug check/Refaster rule.

Additional context

Error Prone itself has experimental support for creating patches. Potentially, all that is required is to improve EPS' documentation.