$ ./buildifier-linux-amd64 --lint=warn --warnings=all common/external/BUILD.bazel
common/external/BUILD.bazel:13: unsorted-dict-items: Dictionary items are out of their lexicographical order. (https://github.com/bazelbuild/buildtools/blob/main/WARNINGS.md#unsorted-dict-items)
common/external/BUILD.bazel:15: unsorted-dict-items: Dictionary items are out of their lexicographical order. (https://github.com/bazelbuild/buildtools/blob/main/WARNINGS.md#unsorted-dict-items)
common/external/BUILD.bazel:17: unsorted-dict-items: Dictionary items are out of their lexicographical order. (https://github.com/bazelbuild/buildtools/blob/main/WARNINGS.md#unsorted-dict-items)
$ git reset --hard
$ ./buildifier-linux-amd64 --lint=warn --warnings=-unsorted-dict-items common/external/BUILD.bazel
$ git diff
<common/external/BUILD.bazel has dict items sorted>
!!!
I did not pass --lint=fix, so it's surprising this was fixed, doubly so since I disabled warning on unsorted-dict-items. How do I disable automatically fixing unsorted-dict-items? Perhaps https://github.com/bazelbuild/buildtools/tree/main/buildifier#linter needs an update.