Skip to content

Commit 6faacbe

Browse files
committed
checkpatch: Add .checkpatch.conf
The checkpatch script doesn't seem to support specifying where to find the configuration file from, so we need to duplicate the one found in the main tree. Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
1 parent 5360302 commit 6faacbe

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.checkpatch.conf

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
--emacs
2+
--summary-file
3+
--show-types
4+
--max-line-length=100
5+
--min-conf-desc-length=1
6+
--typedefsfile=scripts/checkpatch/typedefsfile
7+
8+
--ignore BRACES
9+
--ignore PRINTK_WITHOUT_KERN_LEVEL
10+
--ignore SPLIT_STRING
11+
--ignore VOLATILE
12+
--ignore CONFIG_EXPERIMENTAL
13+
--ignore PREFER_KERNEL_TYPES
14+
--ignore PREFER_SECTION
15+
--ignore AVOID_EXTERNS
16+
--ignore NETWORKING_BLOCK_COMMENT_STYLE
17+
--ignore DATE_TIME
18+
--ignore MINMAX
19+
--ignore CONST_STRUCT
20+
--ignore FILE_PATH_CHANGES
21+
--ignore SPDX_LICENSE_TAG
22+
--ignore C99_COMMENT_TOLERANCE
23+
--ignore REPEATED_WORD
24+
--ignore UNDOCUMENTED_DT_STRING
25+
--ignore DT_SPLIT_BINDING_PATCH
26+
--ignore DT_SCHEMA_BINDING_PATCH
27+
--ignore TRAILING_SEMICOLON
28+
--ignore COMPLEX_MACRO
29+
--ignore MULTISTATEMENT_MACRO_USE_DO_WHILE
30+
--ignore ENOSYS
31+
--ignore IS_ENABLED_CONFIG
32+
--ignore EXPORT_SYMBOL

0 commit comments

Comments
 (0)