summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.checkpatch.conf20
-rw-r--r--PRESUBMIT.cfg4
2 files changed, 24 insertions, 0 deletions
diff --git a/.checkpatch.conf b/.checkpatch.conf
new file mode 100644
index 00000000..cadd68f3
--- /dev/null
+++ b/.checkpatch.conf
@@ -0,0 +1,20 @@
+# Not Linux, so don't expect a Linux tree.
+--no-tree
+
+# Ignore aspects we don't follow here.
+--ignore BLOCK_COMMENT_STYLE
+--ignore C99_COMMENTS
+--ignore CAMELCASE
+--ignore CONFIG_DESCRIPTION
+--ignore GLOBAL_INITIALISERS
+--ignore INITIALISED_STATIC
+--ignore LINE_SPACING
+--ignore MACRO_WITH_FLOW_CONTROL
+--ignore NEW_TYPEDEFS
+--ignore OPEN_BRACE
+--ignore PREFER_ALIGNED
+--ignore PREFER_PACKED
+--ignore PREFER_PRINTF
+--ignore SPACING
+--ignore SPLIT_STRING
+--ignore TRAILING_STATEMENTS
diff --git a/PRESUBMIT.cfg b/PRESUBMIT.cfg
index 8770083a..54d538d5 100644
--- a/PRESUBMIT.cfg
+++ b/PRESUBMIT.cfg
@@ -1,8 +1,12 @@
[Hook Overrides]
branch_check: true
+checkpatch_check: true
+long_line_check: false
signoff_check: true
# We are using Linux style indentation with tabs
# The indentation is checked by checkpatch not the python script
tab_check: false
+[Hook Overrides Options]
+cros_license_check: --exclude_regex=^\.checkpatch\.conf$