bewuethr / shellcheck-action

A GitHub Action to run the shell linter ShellCheck

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use JSON output and create annotations

bewuethr opened this issue · comments

With shellcheck --format=json1, output looking something like

{
  comments: [
    {
      "file": "filename",
      "line": lineNumber,
      "column": columnNumber,
      "level": "severitylevel",
      "code": errorCode,
      "message": "warning message"
    },
    ...
  ]
}

can be generated, and used to create annotations directly on the offending file location.