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