mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-11 12:17:45 +02:00
144 lines
3.9 KiB
JSON
144 lines
3.9 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "lint:watch",
|
|
"type": "shell",
|
|
"command": "python3",
|
|
"args": ["${workspaceFolder}/linter/lint.py", "--watch", "--root", "${workspaceFolder}"],
|
|
"isBackground": true,
|
|
"runOptions": {
|
|
"runOn": "folderOpen"
|
|
},
|
|
"presentation": {
|
|
"reveal": "never",
|
|
"panel": "dedicated",
|
|
"close": true
|
|
},
|
|
"problemMatcher": [
|
|
{
|
|
"owner": "structural",
|
|
"fileLocation": ["relative", "${workspaceFolder}"],
|
|
"pattern": {
|
|
"regexp": "^(.+):(\\d+):(\\d+):\\s+(error|warning):\\s+(.+)$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3,
|
|
"severity": 4,
|
|
"message": 5
|
|
},
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": "^structural: checking\\.\\.\\.$",
|
|
"endsPattern": "^structural: done\\."
|
|
}
|
|
},
|
|
{
|
|
"owner": "vulture",
|
|
"fileLocation": ["relative", "${workspaceFolder}"],
|
|
"pattern": {
|
|
"regexp": "^(.+):(\\d+):(\\d+):\\s+(error|warning):\\s+(.+)$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3,
|
|
"severity": 4,
|
|
"message": 5
|
|
},
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": "^vulture: checking\\.\\.\\.$",
|
|
"endsPattern": "^vulture: done\\."
|
|
}
|
|
},
|
|
{
|
|
"owner": "eslint-project",
|
|
"fileLocation": ["relative", "${workspaceFolder}"],
|
|
"pattern": {
|
|
"regexp": "^(.+):(\\d+):(\\d+):\\s+(error|warning):\\s+(.+)$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3,
|
|
"severity": 4,
|
|
"message": 5
|
|
},
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": "^eslint: checking\\.\\.\\.$",
|
|
"endsPattern": "^eslint: done\\."
|
|
}
|
|
},
|
|
{
|
|
"owner": "knip",
|
|
"fileLocation": ["relative", "${workspaceFolder}"],
|
|
"pattern": {
|
|
"regexp": "^(.+):(\\d+):(\\d+):\\s+(error|warning):\\s+(.+)$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3,
|
|
"severity": 4,
|
|
"message": 5
|
|
},
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": "^knip: checking\\.\\.\\.$",
|
|
"endsPattern": "^knip: done\\."
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "lint:check",
|
|
"type": "shell",
|
|
"command": "python3",
|
|
"args": ["${workspaceFolder}/linter/lint.py", "--root", "${workspaceFolder}"],
|
|
"problemMatcher": [
|
|
{
|
|
"owner": "structural",
|
|
"fileLocation": ["relative", "${workspaceFolder}"],
|
|
"pattern": {
|
|
"regexp": "^(.+):(\\d+):(\\d+):\\s+(error|warning):\\s+(.+)$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3,
|
|
"severity": 4,
|
|
"message": 5
|
|
}
|
|
},
|
|
{
|
|
"owner": "eslint-project",
|
|
"fileLocation": ["relative", "${workspaceFolder}"],
|
|
"pattern": {
|
|
"regexp": "^(.+):(\\d+):(\\d+):\\s+(error|warning):\\s+(.+)$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3,
|
|
"severity": 4,
|
|
"message": 5
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "knip:check",
|
|
"type": "shell",
|
|
"command": "npm",
|
|
"args": ["run", "knip"],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/frontend"
|
|
},
|
|
"problemMatcher": {
|
|
"owner": "knip",
|
|
"fileLocation": ["relative", "${workspaceFolder}/frontend"],
|
|
"pattern": {
|
|
"regexp": "^(.+):(\\d+):(\\d+)\\s+(.+)$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3,
|
|
"message": 4
|
|
},
|
|
"severity": "warning"
|
|
}
|
|
}
|
|
]
|
|
}
|