summaryrefslogtreecommitdiff
path: root/.checkpatch.conf
diff options
context:
space:
mode:
authorMartin Roth <martinroth@chromium.org>2016-07-27 11:56:32 -0600
committerStefan Reinauer <stefan.reinauer@coreboot.org>2016-07-28 20:16:25 +0200
commit2b119b380fa165a753831157a5e41f966ae31d92 (patch)
tree698cfd96d69bfa4ca7ea2f5bb7db440419a565d9 /.checkpatch.conf
parentcd9e1e423f1cf0cf6b38ce51d21e78fc14e9818b (diff)
downloadcoreboot-2b119b380fa165a753831157a5e41f966ae31d92.tar.xz
checkpatch: add .checkpatch.conf
Try to make checkpatch a little friendlier to the coreboot project. This is the checkpatch .conf from the Chrome OS tree. Change-Id: Ie45d5c93f97bd58f3ea31341b47c4ee2a8f02b1e Signed-off-by: Martin Roth <martinroth@chromium.org> Reviewed-on: https://review.coreboot.org/15919 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to '.checkpatch.conf')
-rw-r--r--.checkpatch.conf16
1 files changed, 16 insertions, 0 deletions
diff --git a/.checkpatch.conf b/.checkpatch.conf
new file mode 100644
index 0000000000..4b88745ba2
--- /dev/null
+++ b/.checkpatch.conf
@@ -0,0 +1,16 @@
+# Not Linux, so don't expect a Linux tree.
+--no-tree
+
+# Require every Kconfig symbol to have at least two lines in their description.
+--min-conf-desc-length=2
+
+# Ignore aspects we don't follow here.
+--ignore C99_COMMENTS
+--ignore GLOBAL_INITIALISERS
+--ignore INITIALISED_STATIC
+--ignore LINE_SPACING
+--ignore NEW_TYPEDEFS
+--ignore PREFER_ALIGNED
+--ignore PREFER_PACKED
+--ignore PREFER_PRINTF
+--ignore SPLIT_STRING