keith / buildifier-prebuilt

A bazel toolchain for using prebuilt binaries for buildifier and buildozer
MIT License
35 stars 13 forks source link

Specifying raw warning categories and those with modifiers results in an error. #27

Closed cgrindel closed 2 years ago

cgrindel commented 2 years ago

Be able to do the following:

buildifier(
    name = "buildifier.check",
    exclude_patterns = _BUILDIFIER_EXCLUDE_PATTERNS,
    lint_mode = "warn",
    lint_warnings = [
        "all",
        "-cc-native",
    ],
    mode = "diff",
)

If you specify this today, you get the following error:

buildifier: warning categories with modifiers ("+" or "-") can't be mixed with raw warning categories