Skip to content

Instantly share code, notes, and snippets.

@FunctionDJ
Created September 9, 2021 12:11
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 FunctionDJ/5a9cae80511a2a24202386347cb55286 to your computer and use it in GitHub Desktop.
Save FunctionDJ/5a9cae80511a2a24202386347cb55286 to your computer and use it in GitHub Desktop.
PHPStan problem matcher for VSCode tasks.json
{
"owner": "phpstan",
"source": "phpstan",
"severity": "error",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": [
{
"regexp": "^\\s*Line\\s*(.*)$",
"file": 1,
},
{
"regexp": "^[\\s-]*$"
},
{
"regexp": "^\\s*(\\d+)\\s+(.*)\\s*$",
"line": 1,
"message": 2,
"loop": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment