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
checkpatch.pl. Add this project to the list and add its own invocation
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.
Signed-off-by: Vadim Bendebury <firstname.lastname@example.org>
Reviewed-by: Mike Frysinger <email@example.com>
diff --git a/pre-upload.py b/pre-upload.py
index e067eeb..028d256 100755
@@ -757,6 +757,13 @@
+def _run_checkpatch_depthcharge(project, commit):
+ """Runs checkpatch with options for depthcharge."""
+ return _run_checkpatch(project, commit, [
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 @@
# TODO(bsimonnet): remove this check once src/platform/libchromeos has been
# removed from the manifest (crbug.com/379939)
+ "chromiumos/platform/depthcharge": [_run_checkpatch_depthcharge],