feat: add keybindings and tasks for linting and testing workflows

This commit is contained in:
GitHub Actions
2025-12-05 19:08:03 +00:00
parent 09320a74ed
commit 8929bb4abf
2 changed files with 115 additions and 0 deletions

70
.vscode/tasks.json vendored
View File

@@ -216,3 +216,73 @@
},
"problemMatcher": ["$go"]
}
,
{
"label": "Frontend: Lint Fix",
"type": "shell",
"command": "cd frontend && npm run lint -- --fix",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "Lint: GolangCI-Lint Fix",
"type": "shell",
"command": "cd backend && docker run --rm -v $(pwd):/app:rw -w /app golangci/golangci-lint:latest golangci-lint run --fix -v",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": ["$go"]
},
{
"label": "Frontend: Run All Tests & Scans",
"dependsOn": [
"Frontend: Type Check",
"Frontend: Test Coverage",
"Run CodeQL Scan (Local)"
],
"dependsOrder": "sequence",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "shared"
}
},
{
"label": "Backend: Run All Tests & Scans",
"dependsOn": [
"Backend: Go Test Coverage",
"Backend: Run Benchmarks (Quick)",
"Run Security Scan (govulncheck)",
"Lint: GolangCI-Lint",
"Lint: Go Race Detector"
],
"dependsOrder": "sequence",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Lint: Apply Fixes",
"dependsOn": [
"Frontend: Lint Fix",
"Lint: GolangCI-Lint Fix",
"Lint: Hadolint (Dockerfile)",
"Run Pre-commit (Staged Files)"
],
"dependsOrder": "sequence",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}