From 6ec03ce9d63abfcce69abacb397538bd03dff060 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 26 Jun 2015 10:20:26 -0400 Subject: [PATCH] doc: fixed checkpatch instructions Change-Id: I3f09e5160506784813712309269aa81e0436fb44 Signed-off-by: Anas Nashif --- doc/collaboration/collaboration_coding.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/collaboration/collaboration_coding.rst b/doc/collaboration/collaboration_coding.rst index ac785884291..0c1d0552687 100644 --- a/doc/collaboration/collaboration_coding.rst +++ b/doc/collaboration/collaboration_coding.rst @@ -30,12 +30,15 @@ check the conformity to the coding style. The tool is available in the scripts directory. To invoke :program:`checkpatch` when you commit code, edit your :file:`.git/hooks/pre-commit` file to contain: -.. code-block::bash +.. code-block:: bash #!/bin/sh set -e exec - git diff --cached | /path/to/checkpatch.pl --no-signoff - || true + exec git diff --cached | ${ZEPHYR_BASE}/scripts/checkpatch.pl --mailback --no-tree \ + --no-signoff --emacs --summary-file --show-types \ + --ignore BRACES,PRINTK_WITHOUT_KERN_LEVEL,SPLIT_STRING \ + --max-line-length=100 - || true -.. _Linux kernel coding style: https://www.kernel.org/doc/Documentation/CodingStyle \ No newline at end of file +.. _Linux kernel coding style: https://www.kernel.org/doc/Documentation/CodingStyle