aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-09-26 20:43:42 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-09-29 12:21:27 +0200
commit1fcce70caa2d7702c2b677a7720439b4c1270ab3 (patch)
treec006383373241c1c1e132fdafb1c04657a7fbe38
parentdc3f200a0b2a3b34ff3dff1f1e731d0091a0732f (diff)
downloadpasst-1fcce70caa2d7702c2b677a7720439b4c1270ab3.tar
passt-1fcce70caa2d7702c2b677a7720439b4c1270ab3.tar.gz
passt-1fcce70caa2d7702c2b677a7720439b4c1270ab3.tar.bz2
passt-1fcce70caa2d7702c2b677a7720439b4c1270ab3.tar.lz
passt-1fcce70caa2d7702c2b677a7720439b4c1270ab3.tar.xz
passt-1fcce70caa2d7702c2b677a7720439b4c1270ab3.tar.zst
passt-1fcce70caa2d7702c2b677a7720439b4c1270ab3.zip
clang-tidy: Disable 'readability-identifier-length'
This check complains about any identifier of less than 3 characters. For locals and parameters this is often pointlessly verbose. Disable it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 42bc0ac..a39de07 100644
--- a/Makefile
+++ b/Makefile
@@ -237,6 +237,10 @@ docs: README.md
#
# - concurrency-mt-unsafe
# TODO: check again if multithreading is implemented
+#
+# - readability-identifier-length
+# Complains about any identifier <3 characters, reasonable for
+# globals, pointlessly verbose for locals and parameters.
clang-tidy: $(SRCS) $(HEADERS)
clang-tidy -checks=*,-modernize-*,\
@@ -260,7 +264,8 @@ clang-tidy: $(SRCS) $(HEADERS)
-bugprone-easily-swappable-parameters,\
-readability-function-cognitive-complexity,\
-altera-struct-pack-align,\
- -concurrency-mt-unsafe \
+ -concurrency-mt-unsafe,\
+ -readability-identifier-length \
-config='{CheckOptions: [{key: bugprone-suspicious-string-compare.WarnOnImplicitComparison, value: "false"}]}' \
--warnings-as-errors=* $(SRCS) -- $(filter-out -pie,$(FLAGS) $(CFLAGS))