| [Hook Scripts] |
| # The seemingly-redundant up then back into this directory is because other |
| # bundles e.g. tast-tests-private symlink to this PRESUBMIT.cfg. If we used |
| # tools/blah then we'd need a symlink for every tool and every other repo, so |
| # instead use a path which ends up in the right place whether called from |
| # tast-tests or another bundle. |
| cros format = cros format --check --exclude "android/*.xml" --commit ${PRESUBMIT_COMMIT} ${PRESUBMIT_FILES} |
| tast_lint = ../tast-tests/tools/run_lint.sh -commit=${PRESUBMIT_COMMIT} |
| crostini_lint = ../tast-tests/tools/run_crostini_lint.sh ${PRESUBMIT_COMMIT} |
| check-camera-imports = ../tast-tests/tools/check_camera_imports.sh ${PRESUBMIT_COMMIT} |
| |
| [Hook Overrides] |
| git_cl_presubmit: false |
| long_line_check: true |
| |
| [Hook Overrides Options] |
| |
| # Don't do the LICENSE check against the third_party files because their |
| # licenses may not be ChromiumOS BSD License. |
| cros_license_check: --exclude_regex=/third_party/ --include_regex=^android/.*\.xml$ |
| |
| # Don't do long line check on bundle.js files because those are generated |
| # one-liners. |
| # OWNERS files do not allow line breaks in the syntax, so long per-file |
| # lists can exceed 80 characters. |
| long_line_check: --exclude_regex=bundle.js --exclude_regex=DIR_METADATA --exclude_regex=OWNERS |