feat(conf.toml): cppcheck commands

This commit is contained in:
张佳澈520370910044 2024-05-27 17:27:17 +08:00
parent b8cfb31288
commit 10d9e91c62
2 changed files with 2 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
clangtidy_result.json

View File

@ -4,7 +4,7 @@ name = "clangtidy"
[stages.executor] [stages.executor]
name = "sandbox" name = "sandbox"
[stages.executor.with.default] [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"] env = ["PATH=/usr/bin:/bin:/usr/local/bin"]
cpuLimit = 10_000_000_000 cpuLimit = 10_000_000_000
memoryLimit = 419_430_400 memoryLimit = 419_430_400
@ -20,7 +20,7 @@ max = 65_536
name = "stderr" name = "stderr"
max = 65_536 max = 65_536
[stages.parser] [stages.parser]
name = "clangtidy" name = "cppcheck"
[stages.parser.with] [stages.parser.with]
score = 100 score = 100
rootdir = "/w" rootdir = "/w"