summaryrefslogtreecommitdiff
path: root/PRESUBMIT.cfg
blob: c925185270fc147960b64396793c914a45f8fb91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[Hook Overrides]
black_check: true
clang_format_check: true
branch_check: true
checkpatch_check: true
kerneldoc_check: true

# We are using Linux style indentation with tabs
# The indentation is checked by checkpatch not the python script
tab_check: false

[Hook Overrides Options]
black_check: --include_regex=^util/chargen$
branch_check: --optional
checkpatch_check: --no-tree --no-signoff --ignore=MSLEEP,VOLATILE,SPDX_LICENSE_TAG
kerneldoc_check: --include_regex=\bec_commands\.h$
keyword_check: --block=zassume_

cros_license_check :
  --exclude_regex=^third_party/bmi220/
  --exclude_regex=^third_party/bmi260/
  --exclude_regex=^third_party/boringssl/
  --exclude_regex=^third_party/incbin/
  --exclude_regex=^third_party/libaeabi-cortexm0/
  --exclude_regex=^third_party/linux/
  --exclude_regex=^third_party/sha2/
  --exclude_regex=^third_party/unacl-curve25519/

[Hook Scripts]
cros lint = cros lint ${PRESUBMIT_FILES}
check_cprints = util/check_cprints.py --commit ${PRESUBMIT_COMMIT} ${PRESUBMIT_FILES}
check_ztest = util/check_ztest.py --commit ${PRESUBMIT_COMMIT} ${PRESUBMIT_FILES}
config_option_check = util/config_option_check.py
host_command_check = util/host_command_check.sh
ec_commands_h = util/linux_ec_commands_h_check.sh
migrated_files = util/migrated_files.sh ${PRESUBMIT_FILES}
twister_test_tags = util/twister_tags.py --validate-files ${PRESUBMIT_FILES}
check_zephyr_project_config = util/check_zephyr_project_config.py -d ${PRESUBMIT_FILES}
zephyr_check_compliance = util/zephyr_check_compliance.py ${PRESUBMIT_COMMIT}
zephyr_check_testcase_yaml = ./util/zephyr_check_testcase_yaml.py --commit ${PRESUBMIT_COMMIT} ${PRESUBMIT_FILES}
low_coverage_reason = ./util/check_low_coverage_reason.py ${PRESUBMIT_COMMIT}