• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Ideally checks take place in PRESUBMIT.py so `git cl` stays in sync.
2
3[Hook Scripts]
4cros format = cros format --check --commit ${PRESUBMIT_COMMIT} --include "*.gn" --include "*.gni" --exclude "*.pb.go" --include "*.go" --include "*.md" --exclude "*_pb2.py" --include "*.py" --include "*.star" --exclude "*" ${PRESUBMIT_FILES}
5cros lint = cros lint --commit ${PRESUBMIT_COMMIT} ${PRESUBMIT_FILES}
6chromeos-config generated files = ../platform2/chromeos-config/regen.py --check
7chromeos-config unit tests = ../platform2/chromeos-config/run_tests
8
9[Hook Overrides]
10# cros_license_check is on by default, but we need to specify it here in order
11# for the below exclude_regex to work.
12cros_license_check: True
13
14[Hook Overrides Options]
15cros_license_check: --exclude_regex=recipes/recipes\.py$ --exclude_regex=payload_utils/test_data/.+conf$ --exclude_regex=payload_utils/pylintrc
16