doc: fixed checkpatch instructions
Change-Id: I3f09e5160506784813712309269aa81e0436fb44 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
d5f926fb4d
commit
6ec03ce9d6
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
.. _Linux kernel coding style: https://www.kernel.org/doc/Documentation/CodingStyle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue