setup-deno icon indicating copy to clipboard operation
setup-deno copied to clipboard

add problem matcher for fmt and lint

Open scarf005 opened this issue 1 year ago • 1 comments

setup-node uses github's problemMatcher to automatically add error message to TSC errors; it'd be great to have the same functionality, along with matchers for fmt and lint errors.

scarf005 avatar Oct 29 '23 01:10 scarf005

I've made this matcher for output of deno check but I have no idea how to enable it and test if it works:

{
  "problemMatcher": [
    {
      "owner": "deno-check",
      "pattern": [
        {
          "regexp": "(TS\\d+) \\[(ERROR)\\]: (.*)",
          "code": 1,
          "severity": 2,
          "message": 3
        },
        {
          "regexp": ".*"
        },
        {
          "regexp": ".*"
        },
        {
          "regexp": "at file://(.+):(\\d+):(\\d+)$",
          "file": 1,
          "line": 2,
          "column": 3
        }
      ]
    }
  ]
}

phaux avatar Jan 06 '24 18:01 phaux