JOJ3/examples/clang-tidy/conf.toml
张佳澈520370910044 ecb2f02182
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
fix(cmd/joj3/main_test.go,-examples/clang-tidy,-internal/parsers/clang_tidy): Switched clang-tidy's executor to sandbox
2024-05-05 14:24:15 +08:00

63 lines
1.6 KiB
TOML

skipGitea = true
[[stages]]
name = "prepare"
[stages.executor]
name = "sandbox"
[stages.executor.with.default]
args = ["cmake", "-S", ".", "-DDRONE=ON", "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON", "-B", "build"]
env = ["PATH=/usr/bin:/bin"]
cpuLimit = 10_000_000_000
memoryLimit = 104_857_600
procLimit = 50
copyInCwd = true
copyOut = ["stdout"]
copyOutCached = ["build/compile_commands.json"]
[stages.executor.with.default.stdin]
content = ""
[stages.executor.with.default.stdout]
name = "stdout"
max = 65_536
[stages.executor.with.default.stderr]
name = "stderr"
max = 65_536
[stages.parser]
name = "dummy"
[stages.parser.with]
score = 0
comment = ""
[[stages]]
name = "clang-tidy"
[stages.executor]
name = "sandbox"
[stages.executor.with.default]
args = ["clang-tidy", "--header-filter=.*", "--quiet", "-checks=*", "sillycode.cpp", "-p", "build"]
env = ["PATH=/usr/bin:/bin"]
cpuLimit = 10_000_000_000
memoryLimit = 104_857_600
procLimit = 50
copyInCwd = true
copyOut = ["stdout"]
[stages.executor.with.default.stdin]
content = ""
[stages.executor.with.default.stdout]
name = "stdout"
max = 65_536
[stages.executor.with.default.stderr]
name = "stderr"
max = 65_536
[stages.executor.with.default.copyInCached]
"build/compile_commands.json" = "build/compile_commands.json"
[stages.parser]
name = "clang-tidy"
[stages.parser.with]
score = 100
[[stages.parser.with.matches]]
keyword = ["cppcoreguidelines-avoid-non-const-global-variables"]
score = 5
[[stages.parser.with.matches]]
keyword = ["readability-identifier-length","misc-use-anonymous-namespace"]
score = 2
[[stages.parser.with.matches]]
keyword = ["llvmlibc-implementation-in-namespace"]
score = 0