-
Notifications
You must be signed in to change notification settings - Fork 0
[PoC] impose EqualsAvoidsNull #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2055dc7 to
b340b35
Compare
d748359 to
c316ab2
Compare
c316ab2 to
4df00c7
Compare
| static | ||
| public | ||
| // tag::user_guide[] | ||
| public class MyClassTemplateInvocationContextProvider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marcphilipp might be missing config alignment of check, but this shoes once again that convention is the best config, might consider rewrite migration dropping the config burden promoting into 1LOC being a dedicated recipe, fully maintained by the community.
|
not saying rewrite it perfect, but we could enable the cache again when removing spot and check. Could you show me how to please? After removing all its only existent in some .md files not even clean works anymore. So im having trouble removing the other 2 plugins to show the real diff. With rewrite the whole config is imposed as convention fit into one screen. No need to say thats not quite the case yet, as even the line endings command from spot is mentioned 6-7 times. Rewrite is about having SSOT and relying on the convent over config principle. |
| val majorMinorVersion = "([0-9]+\\.[0-9]+).*".toRegex().matchEntire(fullVersion)!!.let { it.groups[1]!!.value } | ||
| eclipse(majorMinorVersion).configFile(javaFormatterConfigFile) | ||
| trimTrailingWhitespace() | ||
| endWithNewline() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * | ||
| * @param clazz the class to check; never {@code null} | ||
| * @return {@code true} if the class is {@code abstract} | ||
| * @see java.lang.reflect.Modifier#isAbstract(int) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check can do so well imho
| argThat(d -> d.getUniqueIdObject().equals(UniqueId.forEngine("engine-id")))); | ||
| inOrder.verify(executionListener).executionSkipped( | ||
| argThat(d -> d.getUniqueIdObject().getLastSegment().getType().equals("container")), | ||
| argThat(d -> "container".equals(d.getUniqueIdObject().getLastSegment().getType())), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check seems inconsistent as already approached in:

rewritecapability junit-team/junit-framework#4708I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@APIannotations