Skip to content
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

Fix subgroups leading catch all matcher #1485

Merged
merged 5 commits into from
Jan 13, 2023

Conversation

tisonkun
Copy link
Contributor

This refers to #1401.

Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
@tisonkun tisonkun changed the title Subgroup catch all Fix subgroups leading catch all matcher Jan 13, 2023
@tisonkun
Copy link
Contributor Author

cc @nedtwigg @murdos

@@ -41,6 +41,12 @@ void sortImportsFromArrayWithSubgroups() {
StepHarness.forStep(step).testResource("java/importsorter/JavaCodeUnsortedImportsSubgroups.test", "java/importsorter/JavaCodeSortedImportsSubgroups.test");
}

@Test
void sortImportsFromArrayWithSubgroupsLeadingCatchAll() {
FormatterStep step = ImportOrderStep.forJava().createFrom("\\#|");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Verified that it fails without this change.

@nedtwigg nedtwigg merged commit 3adaa1c into diffplug:main Jan 13, 2023
@nedtwigg
Copy link
Member

Thanks for the fix! I'm trying to release today, but migrating our deployment from CircleCI to GitHub has been surprisingly tricky...

@nedtwigg
Copy link
Member

Published in plugin-gradle 6.13.0 and plugin-maven 2.30.0.

@tisonkun tisonkun deleted the subgroup-catch-all branch January 15, 2023 04:35
@tisonkun
Copy link
Contributor Author

@nedtwigg Thank you! I'm trying this version now :)

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