Skip to content

Conversation

@Pankraz76
Copy link
Owner

@Pankraz76 Pankraz76 commented Jul 11, 2025


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

@Pankraz76 Pankraz76 changed the title impose EqualsAvoidsNull [PoC] impose EqualsAvoidsNull Jul 11, 2025
@Pankraz76 Pankraz76 force-pushed the org.openrewrite.rewrite branch from 2055dc7 to b340b35 Compare July 11, 2025 20:24
@Pankraz76 Pankraz76 marked this pull request as ready for review July 11, 2025 20:31
@Pankraz76 Pankraz76 force-pushed the org.openrewrite.rewrite branch from d748359 to c316ab2 Compare July 11, 2025 20:32
@Pankraz76 Pankraz76 force-pushed the org.openrewrite.rewrite branch from c316ab2 to 4df00c7 Compare July 11, 2025 20:33
static
public
// tag::user_guide[]
public class MyClassTemplateInvocationContextProvider
Copy link
Owner Author

@Pankraz76 Pankraz76 Jul 11, 2025

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.

@Pankraz76 Pankraz76 merged commit cd255c1 into main Jul 11, 2025
13 of 14 checks passed
@Pankraz76
Copy link
Owner Author

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()
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rule of 3

Image

*
* @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)
Copy link
Owner Author

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())),
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants