blob: 1484a2211cd934df33b6c85bd29886351549be32 [file] [log] [blame]
# Ideally checks take place in PRESUBMIT.py. The git_cl_presubmit
# line here causes it to be invoked.
[Hook Scripts]
git_cl_presubmit = vpython $(which presubmit_support.py) $(if [[ "${PRESUBMIT_COMMIT}" = pre-submit ]]; then echo --commit; fi)
[Hook Overrides]
# cros_license_check is on by default, but we need to specify it here in order
# for the below exclude_regex to work.
cros_license_check: True
# gofmt_check is on by default, but we need to specify it here in order for the
# below exclude_regex to work.
gofmt_check: True
[Hook Overrides Options]
cros_license_check: --exclude_regex=recipes/recipes\.py$ --exclude_regex=payload_utils/test_data/.+conf$ --exclude_regex=payload_utils/pylintrc
gofmt_check: --exclude_regex=\.pb\.go$