ludeeus / action-shellcheck

GitHub action for ShellCheck.
MIT License
292 stars 69 forks source link

include a problem matcher #99

Open airtonix opened 10 months ago

airtonix commented 10 months ago

Checklist

The idea

problem matchers will make github annotate source files with violations.

Implementation

How do you see this being implemented?

Alternatives

Are there any alternative solutions or features you've considered?

Additional context

airtonix commented 10 months ago

possible solution:

{
  "problemMatcher": [
    {
      "owner": "shellcheck-gcc",
      "pattern": [
        {
          "regexp": "^(.*):(\\d+):(\\d+):\\s+(note|error|warning|info):\\s+(.*)\\s\\[(.*)\\]$",
          "file": 1,
          "line": 2,
          "column": 3,
          "severity": 4,
          "message": 5,
          "code": 6
        }
      ]
    }
  ]
}
ludeeus commented 10 months ago

This was there before, but then GitHub changed how it worked, so it stopped working, and at that time, there was no documentation for it. Is there documentation now? If not, this is not something I'm willing to add back.

airtonix commented 5 months ago

https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md

it's the problem we at Reckon have been using for the last couple of years.

from today: image