Skip to content

[buildifier] Add --mode=off to allow to run just looking for lints (and their fixes) #1417

@thejcannon

Description

@thejcannon

👋 Howdy!

Title says most of it, but Buildifier has an unfortunate CLI where I can't break up its operations into formatting/fixing

# I can get it to just complain about formatting
buildifier -mode=check -lint=off
buildifier -mode=diff -lint=off

# I can get it to just fix formatting
buildifier -mode=fix -lint=off

# I can get it to complain about formatting _and_ lints
buildifier -mode=check -lint=warn

# I can also get it to fix formatting and fixing
buildifier -mode=fix -lint=fix

# But I can't get it to just focus on lints
buildifier -mode=off -lint=fix
buildifier -mode=off -lint=warn

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions