diff options
-rw-r--r-- | .reuse/dep5 | 5 | ||||
-rw-r--r-- | .suppress.cppcheck | 3 | ||||
-rw-r--r-- | test/lint/meson.build | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/.reuse/dep5 b/.reuse/dep5 index 712a2ff..303aefb 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -7,3 +7,8 @@ Files: NEWS sratom.ttl Copyright: 2012-2025 David Robillard <d@drobilla.net> Comment: Contributed to the Commons as a representation of simple facts License: 0BSD OR ISC + +Files: .suppress.cppcheck +Copyright: 2025 David Robillard <d@drobilla.net> +Comment: Contributed to the Commons as a tool configuration +License: 0BSD OR ISC diff --git a/.suppress.cppcheck b/.suppress.cppcheck new file mode 100644 index 0000000..c0246eb --- /dev/null +++ b/.suppress.cppcheck @@ -0,0 +1,3 @@ +normalCheckLevelMaxBranches +nullPointerArithmeticOutOfMemory +nullPointerOutOfMemory diff --git a/test/lint/meson.build b/test/lint/meson.build index 8a89015..d6af528 100644 --- a/test/lint/meson.build +++ b/test/lint/meson.build @@ -28,11 +28,12 @@ if not meson.is_subproject() cppcheck = find_program('cppcheck', required: false) if cppcheck.found() compdb_path = join_paths(sratom_build_root, 'compile_commands.json') + suppress_path = join_paths(sratom_src_root, '.suppress.cppcheck') cppcheck_args = [ '--enable=warning,style,performance,portability', '--error-exitcode=1', '--project=' + compdb_path, - '--suppress=normalCheckLevelMaxBranches', + '--suppressions-list=' + suppress_path, '-q', ] test('cppcheck', cppcheck, args: cppcheck_args, suite: 'code') |