blob: 1484a2211cd934df33b6c85bd29886351549be32 [file] [log] [blame]
David Burgerf2b424b2020-06-12 10:49:28 -06001# Ideally checks take place in PRESUBMIT.py. The git_cl_presubmit
2# line here causes it to be invoked.
David Burgerc014c092020-03-11 11:59:20 -06003
David Burgerf2b424b2020-06-12 10:49:28 -06004[Hook Scripts]
LaMont Jonesd2b4f782021-05-10 16:09:11 -06005git_cl_presubmit = vpython $(which presubmit_support.py) $(if [[ "${PRESUBMIT_COMMIT}" = pre-submit ]]; then echo --commit; fi)
Andrew Lamb8e70ad02020-03-23 08:40:44 -06006
Andrew Lambbc029d32020-02-24 12:42:50 -07007[Hook Overrides]
Prathmesh Prabhufd3d3132020-03-20 12:09:50 -07008# cros_license_check is on by default, but we need to specify it here in order
9# for the below exclude_regex to work.
10cros_license_check: True
Andrew Lambbc029d32020-02-24 12:42:50 -070011# gofmt_check is on by default, but we need to specify it here in order for the
12# below exclude_regex to work.
13gofmt_check: True
14
15[Hook Overrides Options]
Andrew Lamb0ed1b902020-06-08 17:03:47 -060016cros_license_check: --exclude_regex=recipes/recipes\.py$ --exclude_regex=payload_utils/test_data/.+conf$ --exclude_regex=payload_utils/pylintrc
Andrew Lambbc029d32020-02-24 12:42:50 -070017gofmt_check: --exclude_regex=\.pb\.go$