dense-analysis / ale

Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
BSD 2-Clause "Simplified" License
13.51k stars 1.43k forks source link

Add fixer for `golangci-lint` #4616

Open davidjb opened 1 year ago

davidjb commented 1 year ago

Name: golangci-lint URL: https://github.com/golangci/golangci-lint

This was previously reported at https://github.com/dense-analysis/ale/issues/2864:

GoLangCI-lint has a fixer now: golangci-lint run --fix ./...

The ALE fixer will have the same issues we're having with the ALE linter.

This original issue was to add a fixer for golangci-lint and there may have been some confusion as the issue was closed on account of golangci-lint as a linter already existing.

As best I can tell and from what I've tried, golangci-lint isn't available as a fixer (e.g. it's not visible in :ALEFixSuggest nor has a file listed at https://github.com/dense-analysis/ale/tree/master/autoload/ale/fixers or visible elsewhere in the codebase).