diff options
author | Craig Rodrigues <craig@quiknode.io> | 2023-07-24 05:30:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 21:30:00 +0900 |
commit | f34016a55273c180c49a75aafd1e277c0f783d3b (patch) | |
tree | ef73952425ee0f328dcbbb35b7c13806e85ac892 | |
parent | 969f7b080f900d5751918ea23dfe14ffd3030b76 (diff) | |
download | ale-f34016a55273c180c49a75aafd1e277c0f783d3b.zip |
feat: enable golangci-lint by default (#4536)
This replaces golint and gometalinter which are both deprecated
-rw-r--r-- | autoload/ale/linter.vim | 2 | ||||
-rw-r--r-- | doc/ale.txt | 2 | ||||
-rw-r--r-- | test/test_filetype_linter_defaults.vader | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim index 093243a9..b5a32654 100644 --- a/autoload/ale/linter.vim +++ b/autoload/ale/linter.vim @@ -42,7 +42,7 @@ let s:default_ale_linters = { \ 'apkbuild': ['apkbuild_lint', 'secfixes_check'], \ 'csh': ['shell'], \ 'elixir': ['credo', 'dialyxir', 'dogma'], -\ 'go': ['gofmt', 'gopls', 'govet'], +\ 'go': ['gofmt', 'golangci-lint', 'gopls', 'govet'], \ 'groovy': ['npm-groovy-lint'], \ 'hack': ['hack'], \ 'help': [], diff --git a/doc/ale.txt b/doc/ale.txt index d0c7e9e9..467b0c1a 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -1641,7 +1641,7 @@ g:ale_linters *g:ale_linters* \ 'apkbuild': ['apkbuild_lint', 'secfixes_check'], \ 'csh': ['shell'], \ 'elixir': ['credo', 'dialyxir', 'dogma'], - \ 'go': ['gofmt', 'gopls', 'govet'], + \ 'go': ['gofmt', 'golangci-lint', 'gopls', 'govet'], \ 'groovy': ['npm-groovy-lint'], \ 'hack': ['hack'], \ 'help': [], diff --git a/test/test_filetype_linter_defaults.vader b/test/test_filetype_linter_defaults.vader index 987257f7..6b56aca7 100644 --- a/test/test_filetype_linter_defaults.vader +++ b/test/test_filetype_linter_defaults.vader @@ -36,7 +36,7 @@ Execute(The defaults for the elixir filetype should be correct): AssertEqual [], GetLinterNames('elixir') Execute(The defaults for the go filetype should be correct): - AssertEqual ['gofmt', 'gopls', 'govet'], GetLinterNames('go') + AssertEqual ['gofmt', 'golangci-lint', 'gopls', 'govet'], GetLinterNames('go') let g:ale_linters_explicit = 1 |