-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathPRESUBMIT.cfg
15 lines (11 loc) · 840 Bytes
/
PRESUBMIT.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Hook Overrides]
# We are using Linux-style indentation with tabs
tab_check: false
# This is an AOSP project, but we still use a BSD license.
cros_license_check: true
aosp_license_check: false
[Hook Overrides Options]
cros_license_check: --exclude_regex=^test/
[Hook Scripts]
cros format = cros format --check --include '*.py' --exclude 'linux-x86/*.gen.c' --exclude 'test_util.h' --exclude 'unittest_util.h' --include '*.[ch]' --include '*.policy' --include '*.conf' --include .gitignore --exclude '*' --commit ${PRESUBMIT_COMMIT} ${PRESUBMIT_FILES}
cros lint = cros lint --include '*.py' --exclude '*.[ch]' --exclude '*.cpp' --exclude '*.cc' --exclude 'test/*.policy' --exclude 'policies/cros_default_v0.policy' --exclude 'examples/*.policy' --exclude 'rust/minijail/src/test_*.policy' --commit ${PRESUBMIT_COMMIT} ${PRESUBMIT_FILES}