Previous form didn't include *.BUILD or *.bzl files by acceident -- this new form is simpler and more correct, with no issues detected. Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
@@ -58,7 +58,12 @@ repos:
name: Bazel buildifier
entry: scripts/run_buildifier.py
language: python
- files: '^(.*/)?(BUILD\.bazel|BUILD|WORKSPACE)$|\.BUILD$|\.bzl$'
+ files: |
+ (?x)^(
+ .*BUILD.*|
+ .*WORKSPACE.*|
+ .*\.bzl
+ )$'
- id: clang-format
name: clang-format
entry: clang-format