Releases: google/keep-sorted
Releases · google/keep-sorted
v0.5.1
v0.5.0
WARNING: This release is semi-breaking.
This release adds support for YAML lists ([a, b, c]
) for multi-valued options like ignore_prefixes
. This allows you to include special characters and spaces in the values for those options. This will break any pre-existing option values that start with a left square bracket [
.
It's only semi-breaking because there's a workaround: YAML list support is controlled by a hidden option allow_yaml_lists
and keep-sorted now allows you to specify the default options on the command line.
- When updating your version of the tool, also change the
--default-options
to includeallow_yaml_lists=no
.
TIP: Runkeep-sorted --help
to see what the rest of the standard default options are - For the pre-existing option values that are broken by YAML lists either add
allow_yaml_lists=yes
to the pre-existing directive and fix the value so it's a valid YAML list (e.g.[,*
would become['[', *]
) OR addallow_yaml_lists=no
to the pre-existing directive - [Optionally] Flip the default of
allow_yaml_lists
back toyes
- [Optionally] Remove any
allow_yaml_lists=yes
in the codebase
What's Changed
- chore: Remove unused protobuf dependency. by @JeffFaer in #32
- feat: Allow default options to be customzied with a flag. by @JeffFaer in #35
- feat: Surface option parsing warnings via findings. by @JeffFaer in #41
- feat: Allow for spaces and commas in string-valued options. by @JeffFaer in #29
Full Changelog: v0.4.0...v0.5.0
v0.4.0
What's Changed
- Add skip_lines option. by @wachsler-google in #24
- Add group_prefixes option. by @wachsler-google in #25
New Contributors
- @wachsler-google made their first contribution in #24
Full Changelog: v0.3.1...v0.4.0
v0.3.1
v0.3.0
What's Changed
numeric=yes
- Stop panicking when trying to parse numbers bigger than 2^64. by @JeffFaer in #13
- Fix the big.Int parsing so it works with leading zeros. by @JeffFaer in #16
Nesting
- Let newlines be considered for grouping if the next non-empty line has the proper indent. by @JeffFaer in #15
- Allow for nested keep-sorted blocks. by @JeffFaer in #14
- Keep nested keep-sorted blocks together in the same group, regardless of indentation level. by @JeffFaer in #19
Misc
- go: update module, various cleanup by @katexochen in #18
New Contributors
- @katexochen made their first contribution in #18
Full Changelog: v0.2.0...v0.3.0
v0.2.0
What's Changed
- Ensure that golden_test fails if it doesn't find any goldens. by @JeffFaer in #6
- Tweak the workflow name for go.yml so that the badge is a little more descriptive. by @JeffFaer in #7
- Only recognize well-known comment markers by @Colecf in #11
New Contributors
Full Changelog: v0.1.1...v0.2.0