-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Make prefix_order case insensitive when case=no. (#60)
See the history of this PR to see how prefixes.out has changed.
- Loading branch information
Showing
5 changed files
with
101 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,52 @@ | ||
preferred prefixes putting 'build_target' before 'branch_name': | ||
build_specs { | ||
# keep-sorted-test start prefix_order=build_target,branch_name | ||
build_target: "//foo/baz" | ||
branch_name: "dev" | ||
build_target: "//foo/bar" | ||
branch_name: "prod" | ||
# keep-sorted-test end | ||
} | ||
build_specs { | ||
# keep-sorted-test start prefix_order=build_target,branch_name | ||
build_target: "//foo/baz" | ||
branch_name: "dev" | ||
build_target: "//foo/bar" | ||
branch_name: "prod" | ||
# keep-sorted-test end | ||
} | ||
|
||
Put the specified prefixes at the end: | ||
items = [ | ||
# keep-sorted-test start prefix_order=,FOO,BAR | ||
FOO, | ||
DING, | ||
BAR | ||
BATS, | ||
# keep-sorted-test end | ||
] | ||
items = [ | ||
# keep-sorted-test start prefix_order=,FOO,BAR | ||
FOO, | ||
DING, | ||
BAR | ||
BATS, | ||
# keep-sorted-test end | ||
] | ||
|
||
Case insensitive put the specified prefixes at the end: | ||
items = [ | ||
# keep-sorted-test start case=no prefix_order=,foo,bar | ||
FOO, | ||
DING, | ||
BAR | ||
BATS, | ||
# keep-sorted-test end | ||
] | ||
|
||
Put a group of items in the beginning, another group at the end: | ||
// keep-sorted-test start prefix_order=INIT_,,FINAL_ | ||
INIT_FOO, | ||
FINAL_FOO, | ||
INIT_BAR, | ||
FINAL_BAR, | ||
DO_STUFF, | ||
DO_MORE_STUFF, | ||
ZAP_THINGS | ||
// keep-sorted-test end | ||
// keep-sorted-test start prefix_order=INIT_,,FINAL_ | ||
INIT_FOO, | ||
FINAL_FOO, | ||
INIT_BAR, | ||
FINAL_BAR, | ||
DO_STUFF, | ||
DO_MORE_STUFF, | ||
ZAP_THINGS | ||
// keep-sorted-test end | ||
|
||
preferred prefixes with comments: | ||
build_specs { | ||
# keep-sorted-test start prefix_order=build_target,branch_name | ||
build_target: "//foo/baz" | ||
# required for development. | ||
branch_name: "dev" | ||
# raise the bar! | ||
build_target: "//foo/bar" | ||
branch_name: "prod" | ||
# keep-sorted-test end | ||
} | ||
build_specs { | ||
# keep-sorted-test start prefix_order=build_target,branch_name | ||
build_target: "//foo/baz" | ||
# required for development. | ||
branch_name: "dev" | ||
# raise the bar! | ||
build_target: "//foo/bar" | ||
branch_name: "prod" | ||
# keep-sorted-test end | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,52 @@ | ||
preferred prefixes putting 'build_target' before 'branch_name': | ||
build_specs { | ||
# keep-sorted-test start prefix_order=build_target,branch_name | ||
build_target: "//foo/bar" | ||
build_target: "//foo/baz" | ||
branch_name: "dev" | ||
branch_name: "prod" | ||
# keep-sorted-test end | ||
} | ||
build_specs { | ||
# keep-sorted-test start prefix_order=build_target,branch_name | ||
build_target: "//foo/bar" | ||
build_target: "//foo/baz" | ||
branch_name: "dev" | ||
branch_name: "prod" | ||
# keep-sorted-test end | ||
} | ||
|
||
Put the specified prefixes at the end: | ||
items = [ | ||
# keep-sorted-test start prefix_order=,FOO,BAR | ||
BATS, | ||
DING, | ||
FOO, | ||
BAR | ||
# keep-sorted-test end | ||
] | ||
items = [ | ||
# keep-sorted-test start prefix_order=,FOO,BAR | ||
BATS, | ||
DING, | ||
FOO, | ||
BAR | ||
# keep-sorted-test end | ||
] | ||
|
||
Case insensitive put the specified prefixes at the end: | ||
items = [ | ||
# keep-sorted-test start case=no prefix_order=,foo,bar | ||
BATS, | ||
DING, | ||
FOO, | ||
BAR | ||
# keep-sorted-test end | ||
] | ||
|
||
Put a group of items in the beginning, another group at the end: | ||
// keep-sorted-test start prefix_order=INIT_,,FINAL_ | ||
INIT_BAR, | ||
INIT_FOO, | ||
DO_MORE_STUFF, | ||
DO_STUFF, | ||
ZAP_THINGS, | ||
FINAL_BAR, | ||
FINAL_FOO | ||
// keep-sorted-test end | ||
// keep-sorted-test start prefix_order=INIT_,,FINAL_ | ||
INIT_BAR, | ||
INIT_FOO, | ||
DO_MORE_STUFF, | ||
DO_STUFF, | ||
ZAP_THINGS, | ||
FINAL_BAR, | ||
FINAL_FOO | ||
// keep-sorted-test end | ||
|
||
preferred prefixes with comments: | ||
build_specs { | ||
# keep-sorted-test start prefix_order=build_target,branch_name | ||
# raise the bar! | ||
build_target: "//foo/bar" | ||
build_target: "//foo/baz" | ||
# required for development. | ||
branch_name: "dev" | ||
branch_name: "prod" | ||
# keep-sorted-test end | ||
} | ||
build_specs { | ||
# keep-sorted-test start prefix_order=build_target,branch_name | ||
# raise the bar! | ||
build_target: "//foo/bar" | ||
build_target: "//foo/baz" | ||
# required for development. | ||
branch_name: "dev" | ||
branch_name: "prod" | ||
# keep-sorted-test end | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters