summaryrefslogtreecommitdiff
path: root/ale_linters/go
AgeCommit message (Collapse)Author
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.
2017-07-11#756 Escape the paths used for the --include parameter for gometalinter, ↵w0rp
which uses RE2
2017-07-11Make gometalinter work againSander van Harmelen
They changed their logic to use related paths instead of absoluut paths (see [here](https://github.com/alecthomas/gometalinter/commit/a04df08be5899be3c7ad69aa379858dcb660c709#diff-04424ed7c660c10495a54e8d11be89eaR253)) This fixes the linter by also using relative paths…
2017-07-07Make the executable for gometalinter configurablew0rp
2017-06-06Complain about incorrect uses of expand('%...')w0rp
2017-05-20Improve performance when using gometalinter (#566)Sander van Harmelen
* Improve performance when using gometalinter Before this change when I opened a big project that had 6000+ warnings/errors it took ages to get the actual warnings/errors and it caused my CPU to be busy for quite some time. The call to gometalinter alone took about 24 seconds, but after that vim was struggling as well. After this change the gometalinter call just takes 2 seconds and nothing noticable happens with the CPU and/or vim. * Removed obsolete test This logic is no longer done by the `ale` plugin, but by `gometalinter` itself.
2017-05-15Fix #553 - Filter out errors from other files for gometalinterw0rp
2017-05-12#549 Temporarily revert shell escaping changes, just for Windowsw0rp
2017-05-08#540 Fix shell escaping pretty much everywherew0rp
2017-05-06go build: skip not current buffer (#531)Alexandr
* go build: skip not current buffer * fix gobuild_handler.vader
2017-04-29Fix #518 Fix handling of spaces in filenames for various lintersw0rp