mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
feat: enable golangci-lint by default (#4536)
This replaces golint and gometalinter which are both deprecated
This commit is contained in:
@@ -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': [],
|
||||
|
||||
@@ -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': [],
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user