Skip to content

Commit

Permalink
Replace exclusion with inclusion patterns
Browse files Browse the repository at this point in the history
b/162931684
  • Loading branch information
dahlstrom-g committed Mar 26, 2024
1 parent 7984c7a commit 0e543ea
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,34 @@ default_stages: [commit]
default_language_version:
python: python3

files: |
(?x)^(
(
.github|
cobalt|
docker|
glimp|
internal|
precommit_hooks|
starboard|
tools/lz4_compress|
tools/metadata|
tools/metrics/actions/cobalt|
tools/metrics/histograms/metadata/cobalt|
tools/raspi_image|
tools/testing|
tools/windows
)/
)
exclude: |
(?x)^(
(
base|
build|
buildtools|
cobalt/updater|
components/crash/core/common|
components/metrics_services_manager|
components/metrics|
components/prefs|
components/ukm|
components/variations|
components/version_info|
crypto|
extensions/buildflags|
glimp/include|
net|
internal/kokoro/third-party|
internal/starboard/shared/playstation/glimp/shaders|
testing|
third_party|
tools/gyp|
tools/python|
ui|
url
)/
|
components/update_client/((?!cobalt).)*$
|
# Ignore everything under tools/metrics _except_ Cobalt files. We
# need those validated to keep the telemetry/metrics pipeline working.
tools/metrics/((?!cobalt\/).)*$|
.*_pb2\.py$ |
.*\.pb\.cc$ |
.*\.pb\.h$ |
Expand Down

0 comments on commit 0e543ea

Please sign in to comment.