GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Add TOML version catalog formatter step by mkutz · Pull Request #2917 · diffplug/spotless ConversationResolves #2916 Adds a dedicated Features
UsageGradle: spotless {
toml {
target 'gradle/libs.versions.toml'
versionCatalog()
// or with options:
// versionCatalog { maxLineLength(80); stripQuotedKeys(true) }
}
}Maven: <toml> <includes> <include>gradle/libs.versions.toml</include> </includes> <versionCatalog /> </toml> Known limitationsDocumented in
Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsAdd a dedicated FormatterStep for formatting and sorting Gradle version catalog files (libs.versions.toml). The step normalizes spacing around operators and inside inline tables/arrays, sorts entries alphabetically, and orders tables canonically ([versions], [libraries], [bundles], [plugins]). - Preserve comments inside sections by attaching them to the entry below, so they travel with the entry during sorting - Strip and re-attach inline comments (# ...) before formatting inline tables/arrays - Preserve blank lines in the file preamble - Sort entries by logical key name, stripping surrounding quotes - Add TODO.md documenting remaining TOML spec edge cases Adds a stripQuotedKeys parameter (default false) that removes unnecessary quotes from keys when the unquoted form is a valid bare TOML key. Keys like "foo.bar" that would change semantics are preserved. - Parse multi-line inline tables by tracking brace/bracket depth and joining continuation lines into a single entry - Add configurable maxLineLength (default 120): lines exceeding the limit split their inline table across multiple lines (one pair per line, 2-space indent, trailing commas); multi-line tables that fit are joined into a single line - Update TODO.md with fixed items Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. TOML: dedicated plugin to format and sort libs.versions.toml files in Gradle projectsUh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |