Skip to content

Instantly share code, notes, and snippets.

@devster31
Created February 11, 2020 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devster31/0703dcdd268235da145cb218aedf7145 to your computer and use it in GitHub Desktop.
Save devster31/0703dcdd268235da145cb218aedf7145 to your computer and use it in GitHub Desktop.
yamllint Visual Studio Code task
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "yamllint",
"type": "shell",
"command": "/usr/local/bin/yamllint",
"args": [
"-f",
"parsable",
"."
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
},
"problemMatcher":{
"pattern":[
{
"regexp": "^(.*):([0-9]+):([0-9]+): \\[(error|warning)\\] ((.*) \\((.*)\\))$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment