blob: c6ea3f63892d2efee431ec81a493f4d31cc00457 [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 = vpython3 $(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$