feat: use keywords

This commit is contained in:
张泊明518370910136 2024-11-02 04:11:23 -04:00
parent 89472a280c
commit e1444593a9
GPG Key ID: CA088E6D9284F870

View File

@ -6,22 +6,13 @@
"name": "sandbox",
"with": {
"default": {
"args": [
"bash",
"-c",
"cpplint src/*.cpp"
],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"args": ["bash", "-c", "cpplint src/*.cpp"],
"env": ["PATH=/usr/bin:/bin:/usr/local/bin"],
"cpuLimit": 10000000000,
"memoryLimit": 104857600,
"procLimit": 50,
"copyInDir": ".",
"copyOut": [
"stdout",
"stderr"
],
"copyOut": ["stdout", "stderr"],
"stdin": {
"content": ""
},
@ -41,17 +32,15 @@
"with": {
"fullScore": 100,
"minScore": 0,
"files": [
"stderr"
],
"files": ["stderr"],
"endOnMatch": true,
"matches": [
{
"keyword": "[legal/copyright]",
"keywords": ["[legal/copyright]"],
"score": 5
},
{
"keyword": "[runtime/references]",
"keywords": ["[runtime/references]"],
"score": 2
}
]