summaryrefslogtreecommitdiff
path: root/ale_linters/go
AgeCommit message (Collapse)Author
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
2017-04-24Break shared handlers up into their own files, and fix stylelint error handlingw0rp
2017-04-24Simplify some code and format some tests betterw0rp
2017-04-16#427 Implement buffer variable overrides for all linter optionsw0rp
2017-04-15Merge pull request #471 from breed808/gometalinterw0rp
Add gometalinter linter for go files
2017-04-15Use g:ale_linters for turning gometalinter on, and update documentation as ↵w0rp
appropriate
2017-04-15Make code more consistentw0rp
2017-04-13Add gometalinter for go filesBen Reedy
Linter is disabled by default (see g:ale_go_gometalinter_enabled) as it conflicts with a number of established ALE linters (golint, govet, gosimple, staticcheck, etc).
2017-04-13Fix gobuild linterBen Reedy
Resolves issues with gobuild linter with multiple go source files belonging to the same go package.
2017-04-12Make `go build` linter check files on disk (#465)Ben R
* #418 Make `go build` linter check files on disk * Omit errors from imported go packages
2017-03-30Add support for gosimple and staticcheckBen Reedy
2017-03-04#384 Try and stop stupid errors coming from the gobuild functionsw0rp
2017-02-26Copy all loclist items returned from handlers, and set up defaults for ↵w0rp
convenience
2017-02-11Replace every stdin-wrapper script with the new %t formatting supportw0rp
2017-02-07try fixing go build (#297)Joshua Rubin
* try fixing go build * cache some system calls * fix /dev/null * use chained commands, use `go test -c` instead of `go tool compile` * fix some unescaped shell commands * fix a bug with explicitly setting GOPATH * implement changes requested in code review. handle errors from multiple files. fix issue when starting a new package * run `go env` as a job * ensure all functions return the proper type * fix loclist line numbers in some cases * remove multibuffer support for now
2016-12-23Redirect go build output to /dev/nullHeyward Fann
Named file file will be created after ALE, this can redirect the output to /dev/null if go build failed.
2016-12-22add go build for build errors (#180)dzhou121
* add go build for build errors * Add go build to doc and README * Improvement for Go build Go build works on package level, so copy over the other files that belong to the same package to the temp folder as well. * revert back to simple go build * change gobuild script var name
2016-10-21Add support for dot-seperate linters, improve linter testsBjorn Neergaard
This PR first and formost implements support for dot-seperate filetypes, a very trivial change. This closes #132 But more importantly, this PR vastly improves the test quality for `ale#linter#Get`. It enables us to reset the state of ale's internal linter cache, to facilitate better testing, as well as making use of mocked linters instead of depending on linters on disk (which may change). In addition, a dummy linter is defined to test the autoloading behavior. Header guards were removed from all linters as: * A: ale won't try and load linters if they already exist in memory * B: we can't reset state for testing if they can't be loaded again
2016-10-11Introduce generic unix formatterBjorn Neergaard
Two wrapper functions allow treating lines as errors or as warnings
2016-10-11Introduce golang supportBjorn Neergaard
This includes go vet, golint, and gofmt -e