buildtools icon indicating copy to clipboard operation
buildtools copied to clipboard

Feature request: buildifier diff mode that would show changes applied by --lint=fix

Open bduffany opened this issue 4 years ago • 0 comments

It would be great to have some way be able to run buildifier with --mode=diff which takes into account the diffs that would be applied by --lint=fix.

This would be useful for having a CI check that makes sure buildifier --lint=fix ... is run before code can be merged. Currently, this can only be done by actually running buildifier --lint=fix and then running git diff to see if there were any changes, but this is not ideal because it touches the working tree.

bduffany avatar Nov 16 '21 01:11 bduffany