Conversation
Error Prone has good patterns, and it prints good messages. See https://errorprone.info/bugpatterns
|
Here's CI log in my fork: https://github.com/vlsi/assertj-core/runs/6645822760?check_suite_focus=true#step:5:46 |
|
Interesting @vlsi! the team needs to have a look at the rules but looks promising |
|
Of course, I don't suggest enabling and fixing all the bug patterns, however, I believe the errors produced by the default configuration should be fixed. Even some of the "warnings by default" are worth fixing as well. For instance: it might be questionable, however, I believe if (stream(actual).anyMatch(predicate)) {
throw failures.failure(info, anyElementShouldMatch(actual, predicateDescription));
}I remembered Then, there's https://github.com/palantir/assertj-automation which you might want to apply and promote :) |
|
@joel-costigliola , one more question: for now, I include In my experience, the mere presence of We had the exact same issue with https://github.com/pgjdbc/pgjdbc-parent-poms when the PostgreSQL JDBC driver was Maven-based. Moving to Gradle was a huge relief so we could keep all the things in a single repository. Even if you keep multiple repositories (e.g. keep Of course, I would yield to the team's decision, however, I strongly believe tools like ErrorProne, Cherckerframework, AutoStyle would improve contributor and developer experience. |
Personally, I don't see how this is related to Maven. What you're mentioning is a multi-module setup, something we already plan to tackle in #2424. Even if we would switch to Gradle, most likely we would target the same setup. I agree Gradle would allow multi-repository development but IMHO the fact that it's possible doesn't necessarily mean it's the direction we should take. |
38c7b4b to
3cde5bf
Compare
301ca01 to
c730d18
Compare
Error Prone has good patterns, and it prints good messages.
See https://errorprone.info/bugpatterns
Sample output:
Check List:
Following the contributing guidelines will make it easier for us to review and accept your PR.