IT:AD:Code:HowTo:Configure Problem Matchers

Summary

Problem Matchers are nothing more than sophisticated Regex expressions to extract meaning out of the warning and error messages of various tools.

  • You can assign more than one Problem Matcher to a ./tasks.config task – which is useful in such scenarios when you are creating a Task to run IT:AD:Gulp, IT:AD:Grunt or other downstream task runner.
./tasks.config
{
    // See http://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "0.1.0",
    "command": "gulp",
    "isShellCommand": true,
    "args": [
        "--no-color"
    ],
    "tasks": [
        {
            "taskName": "build",
            "args": [],
            "isBuildCommand": true,
            "problemMatcher": [
                "$lessCompile",
                "$tsc",
                "$jshint"
            ]
        }
    ]
}
  • /home/skysigal/public_html/data/pages/it/ad/code/howto/configure_problem_matchers/home.txt
  • Last modified: 2023/11/04 02:18
  • by 127.0.0.1