Add project specific checkpatch options for depthcharge

Depthcharge is different from kernel/u-boot in certain ways, but most
of its coding style requirements could still be verified by Add this project to the list and add its own invocation
of checkpatch.

TEST=tried repo uploading a depthcharge patch with code violation, saw
     the patch rejected. Fixed the violations and tried uploading
     again, saw the patch accepted.

Change-Id: I798ecc3780b986fa1c120b7fd96d7897b9fd0cf2
Signed-off-by: Vadim Bendebury <>
Reviewed-by: Mike Frysinger <>
diff --git a/ b/
index e067eeb..028d256 100755
--- a/
+++ b/
@@ -757,6 +757,13 @@
+def _run_checkpatch_depthcharge(project, commit):
+  """Runs checkpatch with options for depthcharge."""
+  return _run_checkpatch(project, commit, [
+      '--no-tree',
 def _kernel_configcheck(_project, commit):
   """Makes sure kernel config changes are not mixed with code changes"""
   files = _get_affected_files(commit)
@@ -893,6 +900,7 @@
     "chromiumos/platform/common-mk": [_moved_to_platform2],
     # TODO(bsimonnet): remove this check once src/platform/libchromeos has been
     # removed from the manifest (
+    "chromiumos/platform/depthcharge": [_run_checkpatch_depthcharge],
     "chromiumos/platform/libchromeos": [_moved_to_platform2],
     "chromiumos/platform/ec": [_run_checkpatch_ec,