• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This config file disables some of the ChromiumOS source style checks and
2# adds a hook to validate .py files. Comment out the disable-flags for
3# any checks you want to leave enabled. Edit utils/pylintrc to disable any
4# pylint checks.
5
6[Hook Overrides]
7cros_license_check: false
8long_line_check: true
9
10[Hook Scripts]
11git_cl_presubmit = vpython3 $(which presubmit_support.py) $(if [[ "${PRESUBMIT_COMMIT}" = pre-submit ]]; then echo --commit; fi)
12# If running in the chroot, EPYTHON ensures the wrappers don't get the wrong
13# version.
14pylint = EPYTHON=python2 ./utils/run_pylint.py
15check_control_files = ./site_utils/presubmit_hooks/check_control_files.py
16# Not enabled because it takes a few minutes. Put here for convenience
17# and as a bookmark. TODO: http://crbug.com/558819 some wrapper script
18# computing optimal -r options based on PRESUBMIT_FILES.
19# unittest_suite = ./utils/unittest_suite.py # -r server/
20check_json_files = ./site_utils/presubmit_hooks/check_json_files.py
21
22[Hook Overrides Options]
23long_line_check: --exclude_regex=\bfirmware_Cr50ConsoleCommands/pinmux$ --exclude_regex=\bcontrol(\.[\S]+)?$
24