Skip to content

Commit 48f7814

Browse files
committed
Add YAML validation task for VSCode
1 parent 43a78df commit 48f7814

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.vscode/tasks.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Validate YAML",
8+
"type": "shell",
9+
"windows": {
10+
"command": "${workspaceFolder}/tools/validate.cmd"
11+
},
12+
"linux": {
13+
"command": "${workspaceFolder}/tools/validate.sh"
14+
},
15+
"problemMatcher": {
16+
"owner": "yaml",
17+
"fileLocation": "absolute",
18+
"source": "validate",
19+
"pattern": {
20+
"regexp": "^((?:.+).yaml): (?:fail|error): (.+)$",
21+
"file": 1,
22+
"message": 2
23+
}
24+
}
25+
}
26+
]
27+
}

0 commit comments

Comments
 (0)