Commit Graph

73 Commits

Author SHA1 Message Date
LCD 47
9e1b2a8620 Checker golangci_lint: cleanup. 2018-06-15 10:50:36 +03:00
elvis
d15dbf690e
add syntax_checkers golangci_lint.vim 2018-06-15 15:11:38 +08:00
Fredrik Enestad
aae092c25d fix the go syntax cleanup of .test files 2018-04-25 13:39:10 +02:00
arthur
511733327d fix the go syntax checkers with default go build mode 2018-04-08 19:10:56 +08:00
Marco Paganini
68ddbc67f1 Fix govet output parsing for go >= 1.10.
- Changed errorformat of go vet to include go build style messages in
  the parsing of go vet invocations.
- With go 1.10, govet apparently now runs a "go build" to collect
  information about the entire project. As a result, go vet will
  now output both go build and go vet errors. Previously, only
  go vet specific errors were reported.
2018-02-18 10:59:29 -08:00
LCD 47
fc7d4cea42 Checker go/gotype: option "-a" is now "-t". 2017-05-13 10:09:12 +03:00
LCD 47
f660d1074f Cleanup: buffer handling. 2017-02-15 13:50:19 +02:00
LCD 47
b940830756 Checker govet: minor cleanup. 2016-04-25 08:49:40 +03:00
LCD 47
debcecd5c8 Checker gometalinter: minor cleanup. 2015-09-17 23:13:24 +03:00
LCD 47
f2084e9e49 Checker gometalinter: fix arguments. 2015-09-17 19:58:19 +03:00
LCD 47
9371aafa86 Minor cleanup: regex optimisation. 2015-09-17 08:38:50 +03:00
LCD 47
8bb535bd24 Checker gometalinter: cleanup. 2015-09-17 08:27:24 +03:00
Joshua Rubin
3db525cac1 include test files by default. add error type. 2015-09-16 15:04:41 -06:00
Joshua Rubin
aca4d8ea40 add support for setting arguments on gometalinter 2015-09-16 14:26:34 -06:00
Joshua Rubin
f1f7deed33 use package instead of file 2015-09-16 14:12:06 -06:00
Joshua Rubin
61b7dbf9c2 add gometalinter syntax checker 2015-09-16 13:50:37 -06:00
LCD 47
3fb986584a Go checker: option "-buildmode=archive" is new in go 1.5. 2015-09-06 18:38:21 +03:00
LCD 47
0fe6035959 Bug fix: minor shell escape issue. 2015-09-01 07:20:23 +03:00
LCD 47
d077102eb8 Gotype checker: parse test files (@jonasi). 2015-09-01 07:14:40 +03:00
LCD 47
3c2e7e4ce3 Go checker: attempt to speed up builds (@gsalgado). 2015-08-27 14:49:19 +03:00
Guilherme Salgado
13727dd464 Set the GOGC env var to off to speed up go builds 2015-08-27 10:17:06 +01:00
LCD 47
e15ebd3367 Go checker: no longer attempt to redirect output of "go build".
Running "go build -o /dev/null" in a main package that lives in GOPATH
produces an error message:

build output "/dev/null" already exists and is not an object file

This issue won't be addressed on the Go side:

http://code.google.com/p/go/issues/detail?id=4851
https://github.com/golang/go/issues/4851

Consequently, syntastic leaves this to the user to resolve.  Set
g:syntastic_go_go_build_args to something including "-o /some/dir"
to redirect the output of "go build".
2015-06-03 07:42:19 +03:00
LCD 47
dac07db617 Cleanup: shut up most vint warnings. 2015-03-25 18:44:34 +02:00
LCD 47
4d1f2e23ef Go checker: even more contortions. 2015-01-15 18:06:46 +02:00
LCD 47
c60e440d00 Go checker: more contortions around "go_go_build_args" and "go_go_test_args". 2015-01-15 17:51:15 +02:00
LCD 47
74a071331b Go checker should work with go_go_build_args unset. 2015-01-10 06:16:32 +02:00
LCD 47
a18ccb40df Go checker: extra arguments for "go build" and "go test". 2015-01-08 22:15:35 +02:00
LCD 47
1d2f8d514a Formatting: folding. 2015-01-04 12:46:54 +02:00
LCD 47
d1b401609b Bug fix: glob(), globpath(), and expand() should ignore wildignore. 2015-01-04 09:01:55 +02:00
LCD 47
21f052ab02 Go and govet checkers: make go executable configurable. 2014-12-11 12:38:10 +02:00
Vincent Petithory
7f749fe35a make golint report warnings instead of errors 2014-11-22 01:57:27 +01:00
LCD 47
650c7368e9 Discourage people from looking at the sources for user docs. 2014-11-21 10:01:24 +02:00
LCD 47
ce89396808 Checker-specific logging.
New debug level 32, for logging tracing checkers.
New method checker.log().
Cleanup.
2014-10-06 22:19:24 +03:00
Kamil Kisiel
d7b29121a2 Add pattern to match warnings from C compilers when checking Go code. 2014-02-14 12:32:57 -08:00
LCD 47
a487afd810 Second attempt to shut up "go test". 2014-02-09 19:21:34 +02:00
LCD 47
2716eb7711 Revert "Attempt to shut up "go test"."
This reverts commit c6636f6db1.
2014-02-09 19:06:00 +02:00
LCD 47
c6636f6db1 Attempt to shut up "go test". 2014-02-09 18:22:27 +02:00
LCD 47
daf74923b7 Escape Festschrift, vol. 2: add function getExecEscaped(). 2014-02-07 11:19:30 +02:00
LCD 47
f5a45095e2 Escape Festschrift: getExec() needs to be escaped before being used. 2014-02-06 16:50:27 +02:00
LCD 47
44d7ffd7e0 makeprgBuild() refactor: add *_before and *_after options. 2014-01-28 21:44:44 +02:00
LCD 47
b9accaa810 Minor cleanup: &cpo guards and formatting. 2014-01-03 11:29:08 +02:00
LCD 47
72745819fc Minor cleanup for gotype. 2014-01-03 10:47:06 +02:00
lucy
2ddc93d0f9 New checker for Go: gotype. 2013-12-31 04:00:42 +01:00
LCD 47
fa2e6b96d9 Minor cleanup: replace match() by stridx() when appropriate. 2013-11-26 23:19:01 +02:00
LCD 47
6d81ac5dd0 Registry cleanup, stage 3.
Make syntastic#makeprg#build() a dictionary function.
Remove the mandatory checker argument to syntastic#makeprg#build().
2013-11-02 10:44:06 +02:00
LCD 47
3694908d05 Registry cleanup, stage 2.
(1) Checkers now have an _exec attribute, and an accessor getExec().
(2) CreateAndRegisterChecker() initializes _exec from an optional argument
'exec'.  If this argument is missing, 'name' is used instead.
(3) Functions SyntaxCheckers_*_IsAvailable() are now dictionary functions.
(4) Functions SyntaxCheckers_*_IsAvailable() are now optional.  When
they are missing, they are assumed to return executable(expand(self.getExec())).
(5) Argument 'exe' of function syntastic#makeprg#build() is now optional.
If this argument is missing, expand(self.getExec()) is used to set checker
executables.
2013-11-02 10:44:06 +02:00
LCD 47
28bce98a68 Registry cleanup, stage 1.
Make SyntaxCheckers_*_GetLocList() dictionary functions.
Pass a reference to the current checker to syntastic#makeprg#build().
Add an optional 'redirect' argument to CreateAndRegisterChecker().
Change the sh checker to use the new dictionary functions.
Add a new registry method getLocListRaw() (needed for the sh checker).
2013-11-02 10:44:06 +02:00
LCD 47
7b73975d79 Minor errorformat fix for the go checker. 2013-09-27 20:55:56 +03:00
Kamil Kisiel
dd8dfc61da Update go.vim errorformat to remove extra spaces. 2013-09-27 08:59:01 -07:00
Kamil Kisiel
538dc2c7ef Support multi-line error messages in the go checker. 2013-09-26 16:01:30 -07:00