From 10d9e91c626234bc770484d72edc7ff469ec293b Mon Sep 17 00:00:00 2001 From: zjc_he Date: Mon, 27 May 2024 17:27:17 +0800 Subject: [PATCH] feat(conf.toml): cppcheck commands --- .gitignore | 1 - conf.toml | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 92dbde6..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -clangtidy_result.json diff --git a/conf.toml b/conf.toml index e24ceb9..47bdd8b 100644 --- a/conf.toml +++ b/conf.toml @@ -4,7 +4,7 @@ name = "clangtidy" [stages.executor] name = "sandbox" [stages.executor.with.default] -args = ["bash", "-c", "cmake -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B build && clang-tidy-18 --header-filter=.* --quiet -checks=* src/*.cpp -p build"] +args = ["cppcheck --template='{\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"},' --force --enable=all --quiet src/*.cpp"] env = ["PATH=/usr/bin:/bin:/usr/local/bin"] cpuLimit = 10_000_000_000 memoryLimit = 419_430_400 @@ -20,7 +20,7 @@ max = 65_536 name = "stderr" max = 65_536 [stages.parser] -name = "clangtidy" +name = "cppcheck" [stages.parser.with] score = 100 rootdir = "/w"