From 183fb20cd07744205a2d242f5635cd88c73c24ff Mon Sep 17 00:00:00 2001 From: Alex DeJarnatt Date: Thu, 26 Mar 2026 18:04:08 -0400 Subject: [PATCH] Document cppcheck marker for -m filtering in README --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 1f0d5a8..2f685d1 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,17 @@ File extensions to collect. Default: `.c .cpp`. cppcheck_extensions = .c .cpp .h ``` +## Markers + +All cppcheck items are marked with `cppcheck`, so you can select or exclude +them with `-m`: + +``` +pytest --cppcheck -m cppcheck # only cppcheck +pytest --cppcheck -m "unit or cppcheck" # unit tests + cppcheck +pytest --cppcheck -m "not cppcheck" # everything except cppcheck +``` + ## Caching Results are cached based on file modification time and `cppcheck_args`. On