diff options
author | David Robillard <d@drobilla.net> | 2025-06-07 10:48:48 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-06-07 10:48:48 -0400 |
commit | 41f14e51def0a562d556a950d8cc36f15e480f7b (patch) | |
tree | a81a7d89425bd49d01660b95f7ce57c24888ed08 | |
parent | e1ca9d96fd2015daf84e786e2a10dada94467056 (diff) | |
download | sratom-main.tar.gz sratom-main.tar.bz2 sratom-main.zip |
-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') |