luizm / action-sh-checker

A GitHub action that performs static analysis for shell scripts using shellcheck, shfmt and checkbashisms.
MIT License
132 stars 12 forks source link

Add problem matcher as alternate to comment #30

Open nschonni opened 3 years ago

nschonni commented 3 years ago

Registering a problem matcher like https://github.com/ludeeus/action-shellcheck/blob/master/.github/problem-matcher.json can let GitHub put inline comments on the Files tab of a PR

luizm commented 3 years ago

Nice, I will take a look.. thank you @nschonni

haraldh commented 3 years ago

Any progress here?

luizm commented 3 years ago

I took a look, and it works well to shellcheck, but to shfmt it doesn't.... because there are not line and column informations..

nschonni commented 3 years ago

If there is no exact column/line number for the errors, I think you can use 1:1, and then it puts the comment at the top of the file