Commit Graph

45 Commits

Author SHA1 Message Date
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
LCD 47
ff2b615093 Merge branch 'master' into gcc_refactor 2013-06-17 14:02:44 +03:00
LCD 47
da7002516b Added option 'cwd' to SyntasticMake(). 2013-06-11 21:36:44 +03:00
LCD 47
b6f6abba86 Merge branch master. 2013-06-07 21:18:29 +03:00
LCD 47
fd38284b28 Cleanup. 2013-06-07 20:56:39 +03:00
hirochachacha
cc9fc0b52b add golint to syntax_checkers 2013-06-04 01:12:04 +09:00
LCD 47
d3354f175c Make syntastic#makeprg#build() aware of filetypes. Fixes #667. 2013-05-31 21:05:45 +03:00
LCD 47
f76ae1cc0f Go vet errorformat fix. 2013-04-14 09:38:51 +03:00
Kamil Kisiel
fdfa54e702 Add new "govet" checker for static checking of Go code with the vet tool 2013-04-13 20:56:44 -07:00
Kamil Kisiel
2472fe3ca0 Check for gofmt instead of go in the gofmt checker. 2013-04-13 20:35:27 -07:00
Martin Grenfell
16424e5761 add guards to all checkers
goddamn I love macros
2013-02-21 15:50:41 +00:00
Martin Grenfell
e0b8e87c93 refactor all the syntax checkers to use the new API and dir layout 2013-01-27 20:08:30 +00:00
Martin Grenfell
5b31495af2 update makeprg builder and update some checkers to use it
update makeprg builder:
* it now accepts `fname`, `tail`, and `post_args` params.
* add some doc above syntastic#makeprg#build
* update a bunch of checkers to use the new params

Still have quite a few checkers that arent using makeprg#build.
Including all c* and a few other c-like checkers. And PHP.

Not to worried about c* as these checkers are complicated and probably
justify having their own logic to build makeprgs.
2013-01-20 12:27:19 +00:00
Martin Grenfell
6a184f0e37 update checkers to use the new syntastic#makeprg#build()
Make all the easy updates. There are still quite a few to do, but in
doing these ones I can see that syntastic#makeprg#build() needs to
accept a few more options. Namely:

* "postargs" that appear after the filename
* "tail" that appears after everything - used for things like
  redirecting output and piping to grep/sed/etc
* the filename itself - only the java checkers needed this since they
  specify the directory of the file to check as well

There are still a few other things to do as well:

* remove the options from the checkers that are now provided by
  syntastic#makeprg#build implicitly - i.e. the checker exe and args.
* also, we need to doc the above implicit checker options
2013-01-20 11:13:01 +00:00
Christoph Martin
7ffeb29915 drop 6g syntax checker
6g has been superseded by the go tool.
2012-10-26 12:38:14 +02:00
Christoph Martin
d3d00e4b70 use gofmt before go [build|test]
`go build` might not catch syntax errors of the current file if another
file with syntax errors is compiled before the current one.
2012-10-26 12:28:04 +02:00
ghthor
96e0ce95b8 bugfix: use go test for test files.
Test files are not compiled when invoking `go build`.
2012-10-26 12:23:00 +02:00
ghthor
90a4a0571d bugfix: run go compiler from package directory
The compiler only works correctly if passed an import path or run from
the package directory, the latter of which is the path of least
resistance.
2012-10-26 12:16:08 +02:00
Christoph Martin
7010459585 change gofmt invocation
If no syntax errors are found, `gofmt -l % 1>/dev/null` prints the file
name to STDOUT, which is redirected to /dev/null. Less to parse for
syntastic!
If errors are found, they are written to STDERR.

This invocation does not alter the source code, which has been indicated
in the comments.
2012-10-26 12:00:02 +02:00
Kamil Kisiel
b1dc62076b Added support for multi-line go errors in go.vim 2012-09-09 15:24:55 -07:00
Kamil Kisiel
16a7a87529 Build all files with go build 2012-04-11 08:19:57 -07:00
Kamil Kisiel
315e1ad9d2 support column number in go syntax checker 2012-04-01 10:12:51 -07:00
Kamil Kisiel
3cac7f39c1 go syntax checker using 'go build' 2012-03-29 07:48:52 -07:00
Martin Grenfell
3be5136585 go: add gofmt checker from #150 2012-02-11 15:40:45 +00:00