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

Generate the correct qualifiedRuleId for Ktlint 0.48.x #1502

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

Goooler
Copy link
Member

@Goooler Goooler commented Jan 18, 2023

Closes #1495.

@@ -140,7 +140,7 @@ private static EditorConfigOverride createEditorConfigOverride(final List<Rule>
String[] parts = entry.getKey().substring(7).split("_", 2);
if (parts.length == 1) {
// convert ktlint_{ruleset} to {ruleset}
String qualifiedRuleId = parts[0];
String qualifiedRuleId = parts[0] + ":";
property = RuleExecutionEditorConfigPropertyKt.createRuleSetExecutionEditorConfigProperty(qualifiedRuleId);
Copy link
Member Author

@nedtwigg
Copy link
Member

This looks great, but if it affects end-users then it needs changelog entries in plugin-gradle/CHANGES.md and plugin-maven/CHANGES.md

@Goooler
Copy link
Member Author

Goooler commented Jan 25, 2023

Added.

@nedtwigg
Copy link
Member

Thanks! I'll merge this after it passes CI. In the future, mild preference for not force-pushing. It's easier to review deltas than to start over, and sometimes there's something useful in an older commit that I can copy-paste into a final fixup commit before merge.

@nedtwigg nedtwigg merged commit 7ea7112 into diffplug:main Jan 25, 2023
@Goooler Goooler deleted the fix#1495 branch January 25, 2023 05:45
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.

Ktlint rules will be invalid if I override an invalid rule of EditorConfig in Spotless 6.13.0
3 participants