ray-x / go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
MIT License
1.91k stars 119 forks source link

Support `uber-go/nilaway` #401

Open fedemengo opened 7 months ago

fedemengo commented 7 months ago

What's the approach to support a new binary/static analysis tool?

I think having https://github.com/uber-go/nilaway would be a great add-on, is there something I could follow to try integrating it? Is this something you might find valuable?

ray-x commented 7 months ago

The easiest way would be waiting for nilaway to be integrated into golangci-lint and you can enable it in golangci -> GoLint command. But also you can check govulneck and how it was integrated. Also, it is relatively easy to run the command in floating windows and put all output in floating windows. But I suggest running the command and piping the output to quickfix and reformating the output (if needed) to align with quickfix output format (efm)