vim-syntastic / syntastic

Syntax checking hacks for vim
Do What The F*ck You Want To Public License
11.3k stars 1.14k forks source link

Checker go/golangci_lint: add cwd parameters and fix error format for some linters #2374

Closed xwind closed 3 years ago

xwind commented 3 years ago

Some linters("typecheck", "lll") need pacakge path to work. These linters were supported by golangci-lint, however can't work correctly in Syntastic with lacking of package path. You can check these supported linters list in https://golangci-lint.run/usage/configuration/

Morever, some linters ("lll", "goimports" etc) wouldn't pass column num to stdout. So, I add new errorformat pattern to recognize error messages from these linters.

xwind commented 3 years ago

I didn't consider the compatibility with old args. I changed the method of accessing makeprgs, and the checker can get old args like before.

lcd047 commented 3 years ago

Merged, thank you.