feat: use keywords

This commit is contained in:
张泊明518370910136 2024-11-02 04:10:22 -04:00
parent 08430403fe
commit 741183b201
GPG Key ID: CA088E6D9284F870

View File

@ -11,17 +11,12 @@
"-c", "-c",
"clang-tidy-18 --header-filter=.* --quiet -checks=* src/*.cpp" "clang-tidy-18 --header-filter=.* --quiet -checks=* src/*.cpp"
], ],
"env": [ "env": ["PATH=/usr/bin:/bin:/usr/local/bin"],
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"cpuLimit": 10000000000, "cpuLimit": 10000000000,
"memoryLimit": 104857600, "memoryLimit": 104857600,
"procLimit": 50, "procLimit": 50,
"copyInDir": ".", "copyInDir": ".",
"copyOut": [ "copyOut": ["stdout", "stderr"],
"stdout",
"stderr"
],
"stdin": { "stdin": {
"content": "" "content": ""
}, },
@ -41,21 +36,20 @@
"with": { "with": {
"fullScore": 1000, "fullScore": 1000,
"minScore": 0, "minScore": 0,
"files": [ "files": ["stdout"],
"stdout"
],
"endOnMatch": true, "endOnMatch": true,
"matches": [ "matches": [
{ {
"keyword": "[cppcoreguidelines-avoid-non-const-global-variables]", "keywords": [
"[cppcoreguidelines-avoid-non-const-global-variables]"
],
"score": 5 "score": 5
}, },
{ {
"keyword": "[readability-identifier-length]", "keywords": [
"score": 2 "[readability-identifier-length]",
}, "[misc-use-anonymous-namespace]"
{ ],
"keyword": "[misc-use-anonymous-namespace]",
"score": 2 "score": 2
}, },
{ {