google / google/error-prone

XepPatchChecks, default checks and refaster check

Open
#595 2 comments 0 reactions 1 assignee Claimed by @nick-someone View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

Hi,

At the moment I’m on my phone, so typing isn’t the most comfortable thing to do.

I tried to combine `-XepPatchChecks` with a refaster check. When, deliberately adding errors the checks generate a patch file, however the custom refaster check is not present in the patch file. Running refaster without the other checks generates the patch file with the custom refaster refactorings.
This is my `-XepPatchChecks` parameter passed to the compiler:
`-XepPatchChecks:MissingOverride,DefaultCharset,DeadException,refaster:/path/to/my/CustomRule.refaster`
How can I have a patch file containing both the modifications made by the default checks and my custom refaster rule?
I hope someone can point me into the right direction :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.