Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add problem matcher for fmt and lint #53

Open
scarf005 opened this issue Oct 29, 2023 · 1 comment
Open

add problem matcher for fmt and lint #53

scarf005 opened this issue Oct 29, 2023 · 1 comment

Comments

@scarf005
Copy link

scarf005 commented Oct 29, 2023

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.

@phaux
Copy link

phaux commented Jan 6, 2024

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
        }
      ]
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants