| [Hook Scripts] |
| cros format = cros format --check --commit ${PRESUBMIT_COMMIT} --include "*/DIR_METADATA" --include "OWNERS*" --include "*.[ch]" --include "*.cc" --include "*.cpp" --include "*.conf" --include "*.gn" --include "*.gni" --include "*.md" --include "*.policy" --include "*.proto" --include "*.py" --include "*.textproto" --exclude "*" ${PRESUBMIT_FILES} |
| cros lint = cros lint --commit ${PRESUBMIT_COMMIT} ${PRESUBMIT_FILES} |
| check-readme.py = ./common-mk/check-readme.py |
| check-owners = ./common-mk/check-owners.py |
| check-dir-metadata = ./common-mk/check-dir-metadata.py |
| check-libchrome = ../platform/libchrome/libchrome_tools/check-libchrome.py --commit ${PRESUBMIT_COMMIT} ${PRESUBMIT_FILES} |
| check-headers = ./common-mk/check-cc-headers.py --commit ${PRESUBMIT_COMMIT} ${PRESUBMIT_FILES} |
| check-mojom = ./common-mk/check-mojom.py --commit ${PRESUBMIT_COMMIT} |
| check-synced-protos = ./common-mk/check-synced-protos.py --commit ${PRESUBMIT_COMMIT} ${PRESUBMIT_FILES} |
| check-source-files-included = ./common-mk/check-source-files-included.py --commit ${PRESUBMIT_COMMIT} ${PRESUBMIT_FILES} |
| no chrome_dev.conf = ./login_manager/presubmit.sh |
| chromeos-config generated files = ./chromeos-config/regen.py --check |
| |
| # Note: generally we do *not* want to run unit tests in pre-upload. |
| # chromeos-config's run_tests script checks PRESUBMIT_COMMIT to ensure we only |
| # actually execute in CQ builders. |
| chromeos-config unit tests = ./chromeos-config/run_tests |
| |
| [Hook Overrides] |
| cros_license_check: true |
| filepath_chartype_check: true |
| git_cl_presubmit: false |
| long_line_check: true |
| project_prefix_check: true |
| stray_whitespace_check: true |
| cargo_clippy_check: true |
| |
| [Hook Overrides Options] |
| 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) |
| --exclude_regex=^vm_tools/sommelier/perfetto/sdk/perfetto\.(cc|h) |
| --exclude_regex=^vm_tools/sommelier/virtualization/linux-headers/ |
| --exclude_regex=^vm_tools/reference_vm/data/usr/src |
| --exclude_regex=verity/blake2b/ |
| --exclude_regex=soul/gravedigger/tests/test_log_file |
| --exclude_regex=soul/reaper/tests/config_files/.* |
| |
| stray_whitespace_check: |
| --exclude_regex=/testdata/ |
| --exclude_regex=verity/blake2b/ |
| |
| long_line_check: |
| --exclude_regex=(/testdata/|^sepolicy/(policy|shared|file_contexts)/) |
| --exclude_regex=/tmpfiles.d/ |
| --exclude_regex=/DIR_METADATA |
| --exclude_regex=verity/blake2b/ |
| |
| cargo_clippy_check: |
| --project=chromeos-dbus-bindings/ |
| --project=crosh/ |
| --project=featured/rust-client/ |
| --project=flexor/ |
| --project=hiberman/ |
| --project=hwsec-utils/:hwsec-utils/cargo_clippy.sh |
| --project=ippusb_bridge/ |
| --project=libchromeos-rs/ |
| --project=metrics/memd/ |
| --project=metrics/rust-client/ |
| --project=os_install_service/ |
| --project=vm_tools/9s/ |
| --project=vm_tools/chunnel/ |
| --project=resourced/ |
| --project=system_api/ |
| |
| tab_check: |
| --exclude_regex=chromeos-config/crosid/.*\.(c|h)$ |
| --exclude_regex=vm_tools/reference_vm/data/.*\.(c|h)$ |
| --exclude_regex=verity/blake2b/ |