Skip to content

Commit bdd225e

Browse files
committed
Align checkpatch conf
Ensuring the checkpatch conf is aligned to the configuration file found in nfs-ganesha/src/scripts. This allows us to have a consistent experience. Signed-off-by: Pragadeeswaran Sathyanarayanan <pragadeeswaran.sathyanarayanan@ibm.com>
1 parent 8fd84f6 commit bdd225e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

build_scripts/checkpatch/.checkpatch.conf

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,45 @@
7575
# We have the FSF address in a lot of our headers at the moment,
7676
# should clean that up one day but ignoring for now.
7777
--ignore FSF_MAILING_ADDRESS
78+
79+
# We will no longer get grumpy about single line braces
80+
--ignore BRACES
81+
82+
# We use #if 0 to preserve possibly interesting code
83+
--ignore IF_0
84+
--ignore IF_1
85+
86+
--ignore PREFER_DEFINED_ATTRIBUTE_MACRO
87+
--ignore STRLCPY
88+
--ignore DATE_TIME
89+
90+
# @todo FSF work on removing these ones if they make sense...
91+
--ignore BLOCK_COMMENT_STYLE
92+
#--ignore GLOBAL_INITIALISERS
93+
#--ignore UNSPECIFIED_INT
94+
#--ignore LONG_LINE
95+
#--ignore SUSPECT_CODE_INDENT
96+
#--ignore CONSTANT_COMPARISON
97+
#--ignore LINE_SPACING
98+
#--ignore TYPECAST_INT_CONSTANT
99+
100+
# allow split strings
101+
--ignore SPLIT_STRING
102+
103+
# we like symbolic permissions
104+
--ignore SYMBOLIC_PERMS
105+
106+
# we are ok with function prototypes without identifier names
107+
--ignore FUNCTION_ARGUMENTS
108+
109+
--ignore CONST_STRUCT
110+
111+
#retain 80 column max line length
112+
--max-line-length=80
113+
114+
# ignore some annoying things
115+
--ignore COMPLEX_MACRO
116+
--ignore MACRO_WITH_FLOW_CONTROL
117+
--ignore DATE_TIME
118+
--ignore POINTER_LOCATION
119+
--ignore SPACING

0 commit comments

Comments
 (0)