Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Move version-specific cppcheck suppressions to --suppress flags for cross-OS compatibility
Martin Vogele906af95686c
diff --git a/.cppcheck b/.cppcheckindex 5cc2b267f..d6b517021 100644--- a/.cppcheck+++ b/.cppcheck@@ -1,36 +1,15 @@# cppcheck suppressions file-#-# Suppress false positives and checks not relevant to our codebase.-# Philosophy: suppress as little as possible.+# Only universally-supported suppression IDs here.+# Version-specific IDs go in Makefile.cbm as --suppress flags.-# We use _Thread_local extensively — cppcheck doesn't fully understand it-threadsafety:*--# Vendored code (tree-sitter grammars, yyjson, sqlite3)+# Vendored code*:internal/cbm/vendored/**:vendored/*-# Test framework uses some patterns cppcheck doesn't like+# Test framework patternsunusedFunction:tests/*-# We intentionally use variable-length printf format strings-formatStringUsedSafely--# OOM handling: CLI tool — crash is acceptable on allocation failure.-# Real bugs (unsafe realloc) are fixed; these are about NULL deref after-# malloc/calloc which on modern systems means the process is dying anyway.-nullPointerOutOfMemory-nullPointerArithmeticOutOfMemory-ctunullpointerOutOfMemory--# Intentional (void*)1 sentinel pattern for hash table presence checks-intToPointerCast--# cbm_log_info() uses NULL sentinel — macro adds it automatically-varFuncNullUB--# Const correctness for vendor API types (yyjson, sqlite) — adding const-# requires casts against their APIs. Low value, high churn.+# Intentional patternsconstVariablePointerconstParameterPointerconstVariablediff --git a/Makefile.cbm b/Makefile.cbmindex 627191ee8..c2ababbcb 100644--- a/Makefile.cbm+++ b/Makefile.cbm@@ -440,6 +440,12 @@ lint-cppcheck:--error-exitcode=1 \--inline-suppr \--quiet \+ --suppress=varFuncNullUB \+ --suppress=intToPointerCast \+ --suppress=nullPointerOutOfMemory \+ --suppress=nullPointerArithmeticOutOfMemory \+ --suppress=ctunullpointerOutOfMemory \+ --suppress='nullPointer:internal/cbm/sqlite_writer.c' \-Isrc -Ivendored -Ivendored/sqlite3 \-I$(CBM_DIR) -I$(TS_INCLUDE) \$(LINT_SRCS)