summaryrefslogtreecommitdiff
path: root/ale_linters/go
AgeCommit message (Collapse)Author
2024-02-28Fix 4586 - Make golangci-lint lint package on by default. (#4730)Horacio Sanson
Checking whole packages instead of individual files is more sensible default for golang projects. Without this we get many cryptic `typecheck` errors in ALE that do not show when running in terminal or CI.
2023-09-16#4454 Clean up more tests and codew0rp
* Remove some tests we no longer need * Delete blocks of redundant code * Compress some tests together to simplify them * Remove a little code for ancient linter versions * Escape more executables we didn't escape before * Rename a deno option that didn't match our conventions
2023-07-24Remove gometalinter support (#4534)Craig Rodrigues
gometalinter has been deprecated, and was archived in 2019
2023-06-27Remove golint supported-tools (#4535)Craig Rodrigues
golint has been deprecated and was archived in 2019
2023-04-02remove `--enable-all` from golangci-lint options (#4488)Veselin Ivanov
* remove --enable-all from default golangci-lint options * update golangci-lint options documentation * update tests to use empty golangci-lint options
2022-05-04Handle golangci_lint warning and error messages correctly (#4182)Richard Jonas
* Handle golangci_lint warning and error messages correctly * Fix linter warning Co-authored-by: Richard Jonas <richard.jonas@derivco.se>
2021-11-19Add cspell Linter (#3981)David Houston
* Add cspell linter Add cspell linter, with the languages it supports. Signed-off-by: David Houston <houstdav000@gmail.com> * Add cspell Global Variables Documentation Add documentation to /doc/ale.txt with cspell configuration options. Signed-off-by: David Houston <houstdav000@gmail.com> * Add cspell to docs, Minor Cleanup Add cspell for each supported language, adding some spaces and removing others when caught navigating the file. Signed-off-by: David Houston <houstdav000@gmail.com>
2021-07-03Change default of go_staticcheck_lint_package to 1 (#3799)Yuxuan 'fishy' Wang
Fixes https://github.com/dense-analysis/ale/issues/3798.
2021-05-27Make staticcheck configurable with GOPATH detectionw0rp
2021-05-26Enable gopls by default with GOPATH detectionw0rp
2021-03-01Close #2281 - Separate cwd commands from commandsw0rp
Working directories are now set seperately from the commands so they can later be swapped out when running linters over projects is supported, and also better support filename mapping for running linters on other machines in future.
2021-02-03gopls: add go_gopls_init_optionsRob Watson
2020-08-28#3325 - ale#path#BufferCdString now generates %s:hw0rp
2020-05-22Support revive for go files (#2933)Paco
Signed-off-by: Penghui Liao <liaoishere@gmail.com>
2019-07-01Support $GO111MODULE with Go toolingElias Martinez Cohen
Allows the user to override $GO111MODULE environment variable through ale options. This gives control over the default behavior of Go module resolution. Golang documentation: https://github.com/golang/go/wiki/Modules#how-to-use-modules Add `ale#Go#EnvString()` function to make it easy to add similar Go environment variables in the future. Use the new `EnvString` function in all available Go tools callbacks & update tests Also add test of linter command callback for `gofmt`
2019-04-10Close #2179 - Add support for goplsw0rp
2019-03-12make `gotype` return all errorsSander van Harmelen
When using `gotype` without the `-e` option, it will only output the first 10 errors. When working on a larger package that ofter means taht those 10 errors are in other files then the one that you are currently working on which then seems to indicate that there are no errors. By adding the `-e` flag, all errors will be returned and shown properly in the file that you are working on.
2019-02-22#2132 - Replace all uses of foo_callback with foow0rp
2019-02-06Update syntax checkingw0rp
* Line continuation characters should be on the same lines. * .vim file line indentation should be a multiple of 4.
2019-01-05Add support for bingo (#2165)Jerko Steiner
* Add support for https://github.com/saibing/bingo * Add docs for ale-go-bingo * Use go.mod when found * Add test for bingo FindProjectRoot * Simplify ale_linters#go#bingo#GetCommand
2018-11-11Fix #2054 - Make golint configurablew0rp
2018-09-19Add fixer for Go modules (#1873)Martin Tournoij
* Add fixer for Go modules
2018-09-14Change PCRE escape to simple escapeSascha Grunert
2018-09-06Add golangci-lint (#1890)Sascha Grunert
2018-09-06#1891 Fix the go-langserver testsw0rp
2018-09-06Fix #1822 - support go-langserver lsp.Horacio Sanson
2018-09-04Improve ALE project style checkingw0rp
* The project style linter now runs while you type. * Now the scripts for checking the project require blank lines. * Many style issues have been found and fixed.
2018-08-23Remove "go env" from gobuild linterMartin Tournoij
I see no reason to do this? It is just setting the environment to what it already is? It was originally added in #297, but that entire PR is not a great idea in the first place; that PR (together with #270) tried to make the Go do non-standard and non-supported stuff like compiling packages outside of GOPATH. That's not something that works well (I tried), so was eventually removed in #465, but these "go env" calls remained, for no reason in particular, as far as I can think of. This will improve on #1834; you will now no longer get a confusing error (but still won't get a meaningful error; need to think how to do that).
2018-08-16feat: add ale_go_govet_options variabletyru
2018-08-02Simplify the code for most linters and tests with closuresw0rp
2018-07-24#1754 Require snake_case names for linters in the codebasew0rp
2018-07-15Massively reduce the amount of code needed for linter testsw0rp
2018-03-20Use govet handler for gosimple, gotype, staticcheckBen Paxton
2018-03-19Lint whole package for gosimple and gotypeBen Paxton
Fixes #936
2018-03-18Fix #1392 - Only check files on disk for gotypew0rp
2018-02-25Merge pull request #1351 from svanharmelen/f-issue-936w0rp
This fixes issue #936 by linting the whole package
2018-02-25Fix #1358, fix #1369 - Lint the package on save for go vet insteadJohn Eikenberry
2018-02-20This fixes issue #936 by linting the whole packageSander van Harmelen
2018-02-04#1206 Add support for setting options for gobuild, and escape paths betterw0rp
2018-01-07Go: Add gotype support (#1099)Jelte Fennema
2017-12-04Added option for `gometalinter` to lint package (#1156)Jeff Willette
* Added option for `gometalinter` to lint package * added tests for the `gometalinter` command * changed gometalinter commands to use BufferCdString
2017-11-20Added filename key for `go build` linterJeff Willette
- Re: f224ce8a377bbb3a0deb78b98fdc6c43555791e2 - The issues that prompted the above commit which reverted changes made to `go build` and `gometalinter` seemed to suggest that the main issue was with gometalinter and that changes should be put into different commits so they are independent of each other - This commit reinstates the changes to the `go build` linter which seem to be uncontested and it also seems absolutely necessary to show errors from all files in the package which may have caused a build failure.
2017-11-20Revert "Show problems from other files for gobuild and gometalinter"w0rp
This reverts commit e721f851b41b8f6f31067ae2a137019e1cb5546c.
2017-11-15Show problems from other files for gobuild and gometalinterJeff Willette
* Added filename keys to gobuild and gometalinter * Removed skipping files not in current package * Removed `--include` for gometalinter * Fixed the tests
2017-11-15Fix #1131 - Capture both output streams for golintw0rp
2017-11-09add 'output_stream': 'stderr', let golint workwuqiong4945
2017-10-31Fix #936 - Check the actual files for gosimple and staticcheckw0rp
2017-09-12Fix #921 - Capture both output streams for gosimple and staticcheckw0rp
2017-08-08Ban use of ==# or ==? in the codebase, and prefer is# or is? insteadw0rp
2017-07-12Fixup #756Sander van Harmelen
The real fix was not using absolute paths anymore (so not expanding with the `:p` option). The regex was correct and should at least include the `^` character to make sure the string starts with the given path/filename and not references the path/filename in some error description.