aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-02-18 14:15:49 +0100
committerOliver Smith <osmith@sysmocom.de>2022-02-18 14:18:46 +0100
commitc100a6d098f31cb9b19bf6f0b8ead19797aa5e1c (patch)
treef02ed6c71134894f4a33744b60750b053d959ed5
parentef9b2c40625ec49102b1a77ec2c9f9dee802b6f8 (diff)
lint: checkpatch: ignore MISSING_SPACE
Don't require breaking strings at spaces. This is not useful for strings of hex characters, e.g.: { 123, "ffffffffffffffffffffffffffffffffffffffff" "ffffffffffffffffffffffffffffffffffffffff" "ffffffffffffffffffffffffffffffffffffffff" Change-Id: Ib6be7744418530ae3ddbf373e67d1d7f25a60508
-rwxr-xr-xlint/checkpatch/checkpatch_osmo.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lint/checkpatch/checkpatch_osmo.sh b/lint/checkpatch/checkpatch_osmo.sh
index 93b601b..faf0fca 100755
--- a/lint/checkpatch/checkpatch_osmo.sh
+++ b/lint/checkpatch/checkpatch_osmo.sh
@@ -64,6 +64,7 @@ exclude_paths_project() {
# * LINE_CONTINUATIONS: false positives
# * LINE_SPACING: we don't always put a blank line after declarations
# * LONG_LINE*: should be 120 chars, but exceptions are done often so don't fail here
+# * MISSING_SPACE: warns about breaking strings at space characters, not useful for long strings of hex chars
# * PREFER_DEFINED_ATTRIBUTE_MACRO: macros like __packed not defined in libosmocore
# * PREFER_FALLTHROUGH: pseudo keyword macro "fallthrough" is not defined in libosmocore
# * REPEATED_WORD: false positives in doxygen descriptions (e.g. '\param[in] data Data passed through...')
@@ -103,6 +104,7 @@ $SCRIPT_DIR/checkpatch.pl \
--ignore LONG_LINE \
--ignore LONG_LINE_COMMENT \
--ignore LONG_LINE_STRING \
+ --ignore MISSING_SPACE \
--ignore PREFER_DEFINED_ATTRIBUTE_MACRO \
--ignore PREFER_FALLTHROUGH \
--ignore REPEATED_WORD \