google / google/error-prone

Compilation stopping at first error

Open
#436 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

Hello guys,

I've developed a BugChecker here but when I compile it fails at the first error, but there are other instances of that error that I would like to show to the user.

I mean:

```
/Users/sergio/Documents/projects/utqg-errorprone/utqg-errorprone-sampleusage/src/test/java/com/utqg/errorprone/sample/HelloNotPassing1Test.java:10: error: [UTQG:HelperMethodCannotBePublic] Helper Methods of test classes cannot be public.
public void prepareMockedData() {
^
(see https://www.mycompany.com/utqg/HelperMethodCannotBePublic)
1 error
```

But there are a lot of UTQG:HelperMethodCannotBePublic errors that I would like to show to the user at same time. In the actual process, user must fix each of them separately because they are displayed separately. I also tried mvn -fae -fn options but without any success.

How can I handle it?

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.