blob: 9990f293f0cdca801741d20cea5ab5b83c252fd5 [file] [log] [blame]
[Hook Scripts]
cros lint = ../../chromite/bin/cros lint ${PRESUBMIT_FILES}
gnlint = ./common-mk/gnlint.py ${PRESUBMIT_FILES}
gnlint unittest = ./common-mk/gnlint_unittest.py
check-readme.py = ./common-mk/check-readme.py
check-owners = ./common-mk/check-owners.py
[Hook Overrides]
clang_format_check: true
cros_license_check: true
filepath_chartype_check: true
long_line_check: true
project_prefix_check: true
stray_whitespace_check: true
cargo_clippy_check: true
[Hook Overrides Options]
# Enforce formatting of subprojects. If you consider adding a project, run
# clang-format -i -style=file $(find <project>/ -name '*.h' -o -name '*.cc')
# first, check in the changes and then add it to this list.
clang_format_check:
arc/
attestation/
authpolicy/
avtest_label_detect/
biod/
bluetooth/
bootstat/
buffet/
camera/
cfm-device-updater/
chaps/
chromeos-dbus-bindings/
common-mk/
crash-reporter/
cros-disks/
crosdns/
croslog/
cups_proxy/
debugd/
dev-install/
diagnostics/
dlcservice/
easy_unlock/
fitpicker/
goldfishd/
hammerd/
hardware_verifier/
hermes/
hwsec-test-utils/
iioservice/
image-burner/
imageloader/
init/
installer/
ippusb_manager/
kerberos/
libbrillo/
libchromeos-ui/
libcontainer/
libhwsec/
libipp/
libmems/
libpasswordprovider/
libtpmcrypto/
login_manager/
lorgnette/
mems_setup/
metrics/
midis/
mist/
ml/
ml_benchmark/
modemfwd/
mtpd/
nnapi/
ocr/
oobe_config/
patchpanel/
p2p/
permission_broker/
policy_utils/
power_manager/
print_tools/
run_oci/
runtime_probe/
screenshot/
sealed_storage/
secure_erase_file/
shill/
smbfs/
smbprovider/
smogcheck/
st_flash/
system_api/
thd/
timberslide/
touch_firmware_calibration/
tpm2-simulator/
tpm_softclear_utils/
trunks/
typecd/
tpm_manager/
u2fd/
ureadahead-diff/
verity/
virtual_file_provider/
vm_tools/
vpn-manager/
webserver/
wifi-testbed/
cros_license_check:
--exclude_regex=(/testdata/|^sepolicy/policy/|^sepolicy/shared/|^verity/)
--exclude_regex=^camera/(hal/mediatek|hal/intel|hal/rockchip|android)/
--exclude_regex=^nnapi/includes/android/
--exclude_regex=^chaps/pkcs11/(pkcs11f\.h|pkcs11\.h|pkcs11t\.h)
stray_whitespace_check:
--exclude_regex=/testdata/
long_line_check:
--exclude_regex=(/testdata/|^sepolicy/policy/|^sepolicy/shared/)
cargo_clippy_check:
--project=arc/vm/libvda/rust/
--project=libchromeos-rs/
--project=vm_tools/p9/
--project=vm_tools/9s/