Commit Graph

932 Commits

Author SHA1 Message Date
David Barnett
b209693a2a Only set g:loaded_FT_syntax_checker if unset 2012-11-27 07:43:42 -08:00
David Barnett
dcac33ecc0 Set g:loaded_FOO_syntax_checker in syntastic.vim, not every ft file. 2012-11-26 21:44:43 -08:00
Jason Hickner
9f9204415b fix typo 2012-11-23 16:20:04 -08:00
Jason Hickner
02ab1c9df0 add the -fno-code ghc option to speed up checking
Since we're only using ghc to check and lint the file and not actually create output, we can pass -fno-code which omits code generation and speeds up the check quite a bit.
2012-11-23 16:14:53 -08:00
Martin Grenfell
122e88b82a Merge pull request #365 from coryf/erb-ruby-exec-setting
Add support for changing the ruby version for erb
2012-11-21 02:07:20 -08:00
Martin Grenfell
ccecbcb460 javascript/jsl: update conf flag option
Make it so you only have to set g:syntastic_javascript_jsl_conf to
"/path/to/conf" rather than "-conf /path/to/conf"

Closes #405
2012-11-19 22:20:29 +00:00
Martin Grenfell
deaa089884 sass checker: use sass's caching to speed up checking 2012-11-19 09:59:14 +00:00
Martin Grenfell
36db8f4b16 fix a bug with highlighting and getmatches
Highlighting requires vim >= 7.1 with patch 40. It should be disabled
otherwise.

Fix a bug with the version check.

Closes #250.
2012-11-17 20:15:45 +00:00
Martin Grenfell
aba5dd4757 Merge pull request #393 from ChristophMartin/syntax_checkers/go
Fixes Golang Syntax Checker
2012-11-17 11:56:50 -08:00
Martin Grenfell
01340e4de3 Merge pull request #387 from marcparadise/erlang-otp-support
Add typical deps locations for includes
2012-11-17 09:18:46 -08:00
Martin Grenfell
0a7b21d602 Merge pull request #394 from jjimenezlopez/master
The warnings were shown as errors when using flake8
2012-11-14 11:50:55 -08:00
Martin Grenfell
c6c1f426a7 remove gender specific language from readme
Closes #402
2012-11-14 19:36:24 +00:00
Martin Grenfell
d448f180e4 php checker: a bunch of refactors
* only check `executable()` for the sub checkers once - at the top of
  the script
* recapitalize `s:getPHPMDErrors` to `s:GetPHPMDErrors` errors for
  style consistency
* simplify the logic in `SyntaxCheckers_php_GetLocList`
2012-11-13 08:41:09 +00:00
Martin Grenfell
83611198b4 Merge pull request #395 from harijari/add-phpmd-support
Added support for phpmd qa tool at php filetype.
2012-11-13 00:32:15 -08:00
Gregor Uhlenheuer
8a2adf92d3 Merge pull request #399 from dkasak/patch-1
Fix typo in doc/syntastic.txt
2012-11-05 10:53:27 -08:00
Denis
226b8a3d84 Fix typo in doc/syntastic.txt 2012-11-04 12:14:03 +01:00
kongo2002
fd173f1c91 move haskell syntax checkers into separate subdir 2012-10-29 22:22:28 +01:00
kongo2002
6942425b44 Merge remote-tracking branch 'bitc/haskell-hdevtools' 2012-10-29 21:09:54 +01:00
Jarek Sobiecki
6040ab8d54 Added support for phpmd qa tool at php filetype. 2012-10-27 22:20:25 +02:00
Jose Jiménez
9504f526d4 The warnings were shown as errors when using flake8 2012-10-26 13:27:03 +02: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
Martin Grenfell
714b2b19cd Merge pull request #392 from clehner/master
Prevent tabs in error messages from causing "press enter" prompt
2012-10-26 01:16:51 -07:00
Charles Lehner
3199ca3235 Explain why tabs are converted to spaces in error messages. 2012-10-25 20:01:31 -04:00
Charles Lehner
57e962865f Prevent tabs in error messages from causing "press enter" prompt.
Convert the tabs to spaces so that they are counted towards the window width
and the status message does not wrap.
2012-10-25 17:20:07 -04:00
Martin Grenfell
33427121ec fix a bug introduced in 60a3588d30
Two different calculations were incorrectly combined in
s:OSSupportsShellpipeHack().

Introduce s:IsRedrawRequiredAfterMake() to hold the other calculation.

Closes #388
2012-10-23 23:05:00 +01:00
Martin Grenfell
0765f97dd3 refactor out some duplication of /dev/null logic 2012-10-23 22:37:11 +01:00
Martin Grenfell
3e58e495ac Merge pull request #389 from mmv/master
Support less/rst/typescript syntax checkers on Windows platforms
2012-10-23 14:28:52 -07:00
Miguel Ventura
a005ebfdf8 Adding support for less/rst/typescript syntax checkers on Windows. 2012-10-22 23:41:30 +01:00
marc@opscode.com
02b22f862b additional typical deps location for includes 2012-10-17 13:09:26 -07:00
marc@opscode.com
37d3a8318f include deps for otp-structured apps 2012-10-17 13:05:46 -07:00
Martin Grenfell
aa07bd7122 ruby: make the mri checker play nicer with RVM
Query RVM for the version of ruby that should be used to do the syntax
check.

This wont work if the user has different versions of ruby for different
directories (e.g. if they are using a project rvmrc) as it will only a
single ruby version per vim instance.

I think this should satisfy almost everyone though, so we can wait for
feedback before doing anything more hardcore.
2012-10-15 12:49:22 +01:00
Martin Grenfell
429913defc Merge pull request #386 from kasyaar/erlang-checker-improvements2
fix erlang syntax checker
2012-10-15 03:44:16 -07:00
Dmitry Kasimtsev
cc45c6f41b fix erlang syntax checker 2012-10-14 20:08:15 +03:00
Martin Grenfell
ba17657bc4 Merge pull request #380 from kasyaar/erlang-checker-improvements
add possibility to add specific compile instruction
2012-10-12 05:06:32 -07:00
Dmitry Kasimtsev
0ecff2f666 remove old syntax checker 2012-10-12 14:56:06 +03:00
Dmitry Kasimtsev
810f6992b3 add ../include dir in include path by default in erlang_check_file 2012-10-12 13:31:02 +03:00
Martin Grenfell
d210940339 puppet: extract the puppet errorformat generation code into a function 2012-10-12 10:54:28 +01:00
Martin Grenfell
7b51216924 Merge pull request #377 from pforman/master
Fix puppet parser validation for puppet 3.0.0 (and versions 2.61-2.7.9)
2012-10-12 02:44:39 -07:00
Dmitry Kasimtsev
40cb5d56c8 add possibility to add specific compile instruction like -pa(include path) to check syntax in files with parse transforms 2012-10-10 21:57:11 +03:00
kongo2002
42279e29f2 add output redirection to null device for C as well 2012-10-09 23:10:35 +02:00
Alejandro Exojo
5e12357d6c Don't create precompiled headers when checking them 2012-10-09 09:13:41 +02:00
pforman
e9e9172d29 Fix "puppet parser validate" for Puppet 3.0.0
The error message in 'puppet parser validate' changed between Puppet 2.x
and Puppet 3.0.0, preventing syntax errors from being caught.

In addition, the logic to apply --ignoreimport was falsely triggering on
3.0.0, because it was written assuming a major version of "2".  The
--ignoreimport flag has been broken since 2.6.1, so I removed all of that
logic.  In theory, it could be re-added for 2.6.0 and 0.2x.x, but the
version number checking didn't handle 0.2x.x, so I didn't reach back that
far.
2012-10-03 23:05:29 -06:00
Martin Grenfell
2e7d73305b Merge pull request #375 from jb55/typescript
Added initial typescript support
2012-10-03 08:21:16 -07:00
Bill Casarin
6fbef6493c Added initial typescript support 2012-10-03 10:37:41 -04:00
Martin Grenfell
2ad1437af7 Merge pull request #374 from rbrown/getmatches
Put getmatches check in a more sensible place
2012-10-01 10:41:41 -07:00
Richard Brown
6382dc2124 Put getmatches check in a more sensible place 2012-10-01 15:10:53 +01:00