LCD 47
bd67cec8c7
Scala checkers: minor cleanup.
2013-07-20 09:45:40 +03:00
LCD 47
7d913e7165
Merge branch 'master' into gcc_refactor
2013-07-20 09:28:27 +03:00
kongo2002
f68fb27270
scala fsc: use util#shexpand() instead
2013-07-19 01:05:19 +02:00
kongo2002
9e5c15f966
scala: add fsc syntax checker
2013-07-19 01:01:33 +02:00
LCD 47
d8d8a300d7
Rst2pseudoxml: minor adjustment of error levels.
2013-07-17 14:55:38 +03:00
LCD 47
366360dcc1
Typos in the puppetlint checker.
2013-07-16 22:30:28 +03:00
LCD 47
9d15f1f891
Merge branch 'master' into gcc_refactor
2013-07-15 18:38:57 +03:00
LCD 47
ba0f349dbf
Pylama: pep8, pep257, and mccabe are style checkers.
2013-07-15 11:24:41 +03:00
LCD 47
4b9bf4405b
Pylama: new checker for Python 2.
...
Minor refactoring.
2013-07-14 19:13:18 +03:00
LCD 47
dce4c76c21
Merge branch 'master' into gcc_refactor
2013-07-12 08:09:33 +03:00
LCD 47
8c05dbf16e
A first attempt at checking the exit code from the checkers.
2013-07-12 08:08:41 +03:00
LCD 47
3e46bcf71a
Version check for rubocop.
...
Only rubocop versions 0.9.0 or later are supported.
2013-07-12 07:01:16 +03:00
LCD 47
0f6dad6b4c
Merge remote-tracking branch 'sds/fix-rubocop-errorformat'
2013-07-12 06:52:09 +03:00
Shane da Silva
baa95470b6
Change --emacs flag to --format emacs for RuboCop
...
The `--emacs` flag has been deprecated. Switch to specifying
`--format emacs` so that this doesn't break when RuboCop 1.0 is
released.
2013-07-11 12:30:01 -07:00
Shane da Silva
0975a2f948
Fix errorformat for RuboCop checker
...
The errorformat for the RuboCop checker was missing the capture group
for the column number of the error/warning, which resulted in the
location list attempting to jump to 'filename.rb:80', which would
attempt to open a new file.
The solution was to add the "%c" to capture the column number of the
error.
2013-07-11 12:22:38 -07:00
LCD 47
7335fa6e82
Merge branch 'master' into gcc_refactor
2013-07-11 09:35:13 +03:00
LCD 47
bc6ca26f68
Removed erb checker for eRuby.
...
Rationale: ruby.vim is functionally identical, and faster.
2013-07-11 09:31:19 +03:00
LCD 47
9f7d5d7447
Errorformat adjustments for podchecker.
...
Deal with error messages like this:
*** ERROR: =over on line 7 without closing =back at line EOF in file ...
2013-07-10 14:29:24 +03:00
LCD 47
6bff80366a
Merge branch 'master' into gcc_refactor
2013-07-10 11:21:22 +03:00
LCD 47
f4ccd312ee
More shell escaping bugs.
2013-07-10 11:20:54 +03:00
LCD 47
a4a6dd6fcf
Merge branch 'master' into gcc_refactor
2013-07-10 10:31:41 +03:00
LCD 47
a1e1108c8e
Fix a bug related to shell escaping.
2013-07-10 10:30:41 +03:00
LCD 47
49e6d23168
Merge branch 'master' into gcc_refactor
2013-07-08 11:31:03 +03:00
LCD 47
69951dfe6e
Cleanup.
2013-07-08 11:17:00 +03:00
Justin Donaldson
491f5a9e9b
redirect output to dev null for syntax checking
2013-07-07 14:36:22 -07:00
Justin Donaldson
5ea175b6c5
ignore output by default
2013-07-07 14:29:59 -07:00
Justin Donaldson
21e38bc3bf
add hss syntax checker
2013-07-07 13:36:35 -07:00
LCD 47
fd01b9091d
Merge branch 'master' into gcc_refactor
2013-07-06 09:23:46 +03:00
LCD 47
3d614fb2bd
Cleanup.
2013-07-06 09:08:07 +03:00
Thomas Holmes
e74843c941
Mix needs the cwd to be set to the mix file.
2013-07-05 22:32:55 -04:00
Thomas Holmes
8f363a4ecb
Fix Elixir mix
detection.
...
Syntax checker now looks up thorugh its parents to find if it is part
of a mix project.
2013-07-05 17:22:10 -04:00
Thomas Holmes
2d537305f6
Refactor FindInParent from haxe.vim to be a util function
2013-07-05 17:12:06 -04:00
LCD 47
fa961edac6
Merge branch 'master' into gcc_refactor
2013-07-04 21:30:52 +03:00
LCD 47
6ba8e651cb
Make shell escaping less produce fewer useless quotes.
...
Function inspired by tpope's vim-dispatch.
2013-07-04 21:04:20 +03:00
LCD 47
0f1d451d96
Fix for Rails syntax.
...
There is now little point in running this checker rather than the plain
ruby one.
2013-07-03 21:36:14 +03:00
LCD 47
b2c6ac164d
Merge branch 'master' into gcc_refactor
2013-07-03 10:49:50 +03:00
jvenant
aefae69985
re-add pom timestamp management
2013-07-01 18:57:21 +02:00
jvenant
882298ed02
correct test directory property name
2013-07-01 18:50:48 +02:00
jvenant
dc351c8d31
Add 4 features to maven management :
...
* Retrieve maven properties from help:effective-pom
* Extract targets path from maven properties
* Recursively search pom file in parents (using findfile)
* Use a dictionary to cache classpath for each project pom
2013-07-01 18:23:56 +02:00
LCD 47
582a717ff8
Merge branch 'master' into gcc_refactor
2013-07-01 18:18:35 +03:00
LCD 47
cb71439de5
Make the haxe checker aware of g:vaxe_hxml.
2013-07-01 18:14:15 +03:00
LCD 47
b00b7a2cea
Make the haxe checker aware of vaxe.
2013-07-01 10:37:52 +03:00
LCD 47
593cf4e123
Merge branch 'master' into gcc_refactor
2013-06-29 13:09:21 +03:00
LCD 47
8751e32710
Bug fix: incomplete registering of cloned checkers.
...
Scenario:
- a C file is recognized as having filetype cpp
- run :SyntasticInfo
- run :setf c
- run :SyntasticInfo again
The only checker recognized will be oclint. The reason is, oclint is
registered as a c checker when called from cpp initialization, and that
prevents registering other c checkers when calling ':setf c'.
Solution: always initialize all checkers for a filetype.
2013-06-29 13:03:28 +03:00
LCD 47
24876abc32
More encoding problems in the eruby/ruby checker.
2013-06-29 10:55:43 +03:00
LCD 47
6cc0ed4003
Make checkstyle aware of message priorities.
...
Known bug: this breaks if the name of the file being checked contain one
of the characters <, >, ', ", &.
2013-06-28 21:24:38 +03:00
LCD 47
607ce98107
Checkstyle is (surprise!) a style checker.
2013-06-28 08:43:16 +03:00
LCD 47
344701c9c3
Change the gfortran checker to use syntastic#c#GetLocList().
2013-06-26 16:58:27 +03:00
LCD 47
f48c500de9
Merge branch 'master' into gcc_refactor
2013-06-26 16:21:20 +03:00
LCD 47
6239284d16
Variable g:systastic_puppet_lint_arguments is deprecated.
2013-06-25 21:12:23 +03:00
LCD 47
3e4501c1ff
More refactoring: add s:GetCheckerVar().
2013-06-25 09:59:07 +03:00
LCD 47
907ef20e3c
New preprocess function "filterForeignErrors". Cleanup.
2013-06-24 11:46:27 +03:00
LCD 47
5e196e67c5
Merge branch 'master' into gcc_refactor
2013-06-19 12:09:48 +03:00
LCD 47
9aef6b24ad
Merge branch 'split_puppet'
2013-06-19 12:07:42 +03:00
LCD 47
05a3ca32ba
Puppetlint doesn't produce useful results without puppet.
2013-06-19 12:07:20 +03:00
LCD 47
2cbcf7dcc7
Give up trying to set an encoding for erb.
2013-06-19 11:47:27 +03:00
LCD 47
48bb7bf816
Merge branch 'master' into gcc_refactor
2013-06-18 19:57:27 +03:00
LCD 47
c21f9e0f86
Rename eruby.vim -> erb.vim.
2013-06-18 19:47:26 +03:00
LCD 47
e7a3fd62a6
Clean erb checker.
2013-06-18 19:47:05 +03:00
Grzegorz Smajdor
d9d641fe0a
provide a syntax check for eruby file
...
(cherry picked from commit e6ff3de83b9fee4f92dbc3042cf5fbcc48464f73)
2013-06-18 19:08:52 +03:00
LCD 47
a7243e87a6
Split the puppet checker into puppet and puppetlint.
2013-06-18 14:40:24 +03:00
LCD 47
f712fd959a
New checker: cobol/cobc (OpenCOBOL).
2013-06-17 14:52:12 +03:00
LCD 47
ff2b615093
Merge branch 'master' into gcc_refactor
2013-06-17 14:02:44 +03:00
LCD 47
ede4127f13
eRuby: take into account &fileencoding.
2013-06-12 08:00:27 +03:00
Manic Chuang
73a83a3208
Let eruby checker can handle UTF-8
2013-06-12 12:08:42 +08:00
LCD 47
da7002516b
Added option 'cwd' to SyntasticMake().
2013-06-11 21:36:44 +03:00
LCD 47
4284fbf522
Merge branch 'master' into gcc_refactor
2013-06-10 23:25:21 +03:00
LCD 47
197ca09edd
Bug fix: proper escaping in eruby. Fixes #29 .
2013-06-08 21:08:45 +03:00
LCD 47
aa73921d30
Merge branch 'master' into gcc_refactor
2013-06-08 09:47:17 +03:00
LCD 47
4ae72576da
Merge pull request #679 from orenhe/shell_dont_validate_archaic_posix
...
sh: do not enforce POSIX validation on bash/zsh scripts
2013-06-07 11:51:01 -07: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
LCD 47
6e90447a31
Cosmetic change: checkpatch is a style checker.
2013-06-07 19:27:48 +03:00
LCD 47
000f965409
Merge branch 'master' into gcc_refactor
2013-06-07 12:27:50 +03:00
LCD 47
e8579fc8c9
Update errorformat for sass. Fixes #42 .
2013-06-07 11:50:54 +03:00
Oren Held
3859d89ad7
sh: do not enforce POSIX validation on bash/zsh scripts
...
The POSIX check warns about perfectly legal bash/zsh statements such as the 'local' keyword.
It's archaic and irrelevant nowadays.
2013-06-07 11:15:15 +03:00
LCD 47
c1de9703ff
Makes the haml executable configurable. See #677 .
2013-06-06 14:06:47 +03:00
LCD 47
d3d4ff3935
Merge branch 'master' into gcc_refactor
2013-06-06 11:10:10 +03:00
LCD 47
4428f7e54f
CoffeeScript changes, again.
...
Version check: errorformat depends on the combination of node version
and CoffeeScript version. When run under recent nodes, only 1.6.2 and
newer produce errors we know how to parse.
Changed again "-t", this time to "-cp".
2013-06-05 17:00:34 +03:00
LCD 47
3c2549c6cd
Changed arguments for coffee-script, again.
...
With "-t" some errors (e.g. "unexpected INDENT") are not caught.
Apparently "-n" works better.
2013-06-05 15:56:07 +03:00
LCD 47
049a32e578
Remove obsolete comment.
2013-06-05 11:36:42 +03:00
Michael Hart
67ecc65223
Change coffee arg from -c to -t to prevent JS file pollution
...
The -t flag will output tokens (and syntax errors if there are any) - it is quite a lot quicker than another alternative, -n, especially for large files.
2013-06-05 18:25:54 +10:00
LCD 47
b774569ad0
Unbreaks coffee-script. Partial fix for #663 .
2013-06-04 21:34:42 +03:00
William Ting
dd7ed77886
fix errror misspellings
2013-06-04 07:53:06 -05:00
hirochachacha
cc9fc0b52b
add golint to syntax_checkers
2013-06-04 01:12:04 +09:00
LCD 47
dbcaa992ac
Bug fix: nasm output.
2013-06-02 13:28:49 +03:00
LCD 47
67ec6ae4f2
Merge branch 'master' into gcc_refactor
2013-06-01 07:45:54 +03:00
LCD 47
0151c96c9c
Atdtool: make syntax highlighting more robust.
2013-05-31 21:31:35 +03:00
LCD 47
63eceb6969
Merge branch 'master' into gcc_refactor
2013-05-31 21:15:55 +03:00
LCD 47
d3354f175c
Make syntastic#makeprg#build() aware of filetypes. Fixes #667 .
2013-05-31 21:05:45 +03:00
LCD 47
dfb8b4a0ad
Typo in OClint checker.
2013-05-30 19:45:33 +03:00
LCD 47
a8be73d113
Moved syntastic#gcc#GetLocList() to autoload/syntastic/c.vim.
2013-05-30 19:44:12 +03:00
LCD 47
4a6ece567a
Merge branch 'master' into gcc_refactor
2013-05-30 19:29:12 +03:00
LCD 47
ec434f50b1
Added checkers for Objective-C++ (mostly cloned from Objective-C).
2013-05-30 18:55:39 +03:00
LCD 47
3c5323c103
More errorformar adjustments for OClint.
2013-05-30 18:40:37 +03:00
LCD 47
5393d3b040
Better handling of errorformat for OClint.
2013-05-30 13:01:37 +03:00
LCD 47
5a73439775
New checker: text/atdtool.
2013-05-29 18:03:14 +03:00
LCD 47
3c41ef06b3
Remove duplicated code.
2013-05-29 14:57:29 +03:00
LCD 47
76b90995f5
Uniform naming for load guards.
2013-05-29 14:50:29 +03:00
LCD 47
a0aff0f436
OClint can check Objective-C files. Cleanup.
2013-05-29 14:25:33 +03:00
unc0
85cd84e5b0
add oclint syntax checker for c/c++
2013-05-29 16:10:46 +08:00
LCD 47
dd6e1c703b
Relax parsing of version strings.
2013-05-29 09:55:42 +03:00
LCD 47
b4e0bdfe12
Coffee checker: "--lint" is now deprecated.
2013-05-26 17:47:52 +03:00
LCD 47
f4a5842d18
Small fixes.
2013-05-21 15:02:42 +03:00
LCD 47
ea827bfa06
GCC refactor.
2013-05-21 10:03:04 +03:00
Eddie Monge Jr.
2da8a149a6
Add main to list of block level elements
...
HTML5 now supports main element http://www.w3.org/html/wg/drafts/html/master/grouping-content.html#the-main-element
2013-05-20 15:00:42 -06:00
LCD 47
3462105740
Splint: kip some assertion messages.
2013-05-20 21:52:49 +03:00
LCD 47
c64f49456e
Syntax checker: pod/podchecker.
2013-05-20 20:57:02 +03:00
LCD 47
8c0f54e794
Syntax checker: nroff/mandoc.
2013-05-20 19:37:26 +03:00
LCD 47
c7ad55cbbd
Allow per-buffer b:syntastic_perl_efm_program to override g:syntastic_perl_efm_program.
2013-05-17 19:53:38 +03:00
LCD 47
5f7e62f95d
Allow g:syntastic_perl_interpreter to override the Perl interpretter.
2013-05-17 19:09:21 +03:00
LCD 47
49166270fa
Bug fix.
2013-05-14 21:48:00 +03:00
Martin Grenfell
602bbe7b24
break down some error format strings
...
Most errorformats are now expressed 1 "clause" per line.
2013-05-14 17:36:20 +01:00
LCD 47
68cfe6513b
Cleanup.
2013-05-13 16:37:16 +03:00
LCD 47
7319cb6a9e
Postprocessing functions.
...
This patch adds an option 'postprocess' to SyntasticMake(). The value
of this option is a list of names. Each name is translated to a
function syntastic#postprocess#name(). These functions are applied in
order to the list of errors just before SyntasticMake() returns. They
take a single parameter, the list of errors, and are supposed to
returned the processed list.
2013-05-10 14:11:07 +03:00
LCD 47
d261751c77
Merge pull request #632 from mbedna/master
...
Fix to enable using syntastic plugin with java projects using maven in cygwin
2013-05-06 05:52:45 -07:00
Marcin Bednarek
5bd761984c
Using standard output directories for maven project.
2013-05-06 12:25:19 +01:00
Marcin Bednarek
2f89733f3e
Cygwin support added.
2013-05-06 12:24:15 +01:00
LCD 47
17d49a8db6
Added pep8 checker for Python.
2013-05-05 08:54:03 +03:00
LCD 47
165602e572
LLVM: avoid leaving behind junk files.
2013-04-30 23:14:55 +03:00
Andrew Kelley
3ef7ec6f5b
add llvm syntax checker
2013-04-30 15:42:29 -04:00
LCD 47
32423160aa
Fix (again) errorformat for checkbashisms.
2013-04-30 00:16:15 +03:00
Marcin Bednarek
8217787543
target/test-classes added to classpath.
2013-04-29 21:26:33 +01:00
Marcin Bednarek
aecbf44568
^M changed to \r - carriage return.
2013-04-28 21:06:39 +01:00
Marcin Bednarek
9d6c40c1f7
Cygwin support added. Using cygpath to get actual path for Cygwin.
2013-04-28 14:32:12 +01:00
LCD 47
9493124831
Rework of the haskell/ghc-mod checker.
2013-04-25 22:40:03 +03:00
LCD 47
2c894c951c
Bug fix in objc/gcc.
2013-04-25 09:23:47 +03:00
LCD 47
7bbaa18dce
Gets the D checker in synch with the C/C++ ones.
2013-04-24 11:02:03 +03:00
Martin Grenfell
2e608688b9
Merge pull request #620 from lafka/erl-nested-dirs
...
Add support for nested dirs inside src/
2013-04-22 04:21:11 -07:00
LCD 47
eca7c1e1a0
New C checker for Secure Programming Lint.
2013-04-21 22:21:13 +03:00
Martin Grenfell
dc01f5d69d
clisp: some fixes
...
Add a buffer number to loc list entries.
Match warnings that are for multiple lines.
2013-04-21 18:37:41 +01:00
Martin Grenfell
5859a5bdff
ruby/rubocop: bugfix
2013-04-21 17:31:37 +01:00
Recai Oktaş
02dbc6433a
New syntax checker for Ruby: rubocop.
2013-04-20 23:48:31 +03:00
Olav Frengstad
f39fba1c87
Add support for nested dirs inside src/
...
When having nested directories (for instance `src/protocol/tm_protocol.erl`)
autocompilation would fail. This fix adds the abspath of all depdencies to
the codepath and sets compile option {i, _} to support both `deps/` and `lib/`.
2013-04-18 17:12:45 +02:00
LCD 47
6f214cbb6d
Fix error highlighting in x?html/tidy.
2013-04-17 13:29:46 +03:00
LCD 47
b9700c7a6f
Merge pull request #618 from liamcurry/py3kwarn
...
Added py3kwarn checker
2013-04-16 22:55:51 -07:00
LCD 47
78bc84fb5a
Rework of the html/w3 checker.
2013-04-16 11:30:42 +03:00
LCD 47
742bcc1465
Typo.
2013-04-16 10:22:15 +03:00
Liam Curry
1653093baa
Added py3kwarn checker
2013-04-15 17:15:49 -04:00
LCD 47
408287de6f
Cleanup.
...
Adds an option g:syntastic_xhtml_tidy_ignore_errors to xhtml/tidy.
Cosmetic code changes.
2013-04-15 11:21:52 +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
kongo2002
1ff67622c5
use $SHELL for scripts without shebang
...
thanks to @zhaocai
Closes #613
2013-04-13 12:29:57 +02:00
LCD 47
51001b66de
Typo.
2013-04-12 13:29:47 +03:00
LCD 47
4604c97f06
Rework of the python checker.
2013-04-12 13:14:07 +03:00
LCD 47
49b0318fa6
Cleanup for tidy.
...
Added an user-defined global list of errors to ignore:
g:syntastic_html_tidy_ignore_errors.
Minor cleanup.
2013-04-11 23:00:25 +03:00
LCD 47
85d4631002
New checker for CSS: PrettyCSS.
2013-04-11 11:29:10 +03:00
LCD 47
13169b2477
New checker for C++: Google cpplint.
2013-04-10 23:44:04 +03:00
LCD 47
3cb4de3095
Skip unknown error messages.
2013-04-10 23:02:03 +03:00
LCD 47
7438ab376b
Error format fix for checkbashisms.
2013-04-10 18:55:30 +03:00
LCD 47
bd2d5e37ed
Error format fix for pylint.
2013-04-10 11:48:17 +03:00
LCD 47
633dfa60ec
HTML checker using http://validator.nu .
2013-04-05 11:47:17 +03:00
Martin Grenfell
128ac00c59
vhdl/ghdl checker: use syntastic#makeprg#build
2013-04-04 22:53:40 +01:00
Jaydyou
57568622fe
added vhdl syntax checker utilizing ghdl
2013-04-04 22:52:26 +02:00
LCD 47
54cad3696e
Makes sparse aware of &tabstop.
2013-04-03 11:35:02 +03:00
LCD 47
3b8f38dcf9
Merge pull request #596 from supki/syntax-checker-coqtop
...
Added syntax checker for coq.
2013-04-02 11:58:08 -07:00
Matvey Aksenov
a3e5fb201d
Added syntax checker for coq.
2013-04-02 22:36:00 +04:00
LCD 47
c8208cf24e
Merge pull request #595 from joshuarh/simplify-coffeescript-checker
...
update the default coffeescript checker
2013-04-02 11:31:49 -07:00
LCD 47
8f75fd547c
php/php: prevent xdebug.cli_color from messing with checks.
2013-04-02 11:03:01 +03:00
Joshua Hoff
d769273bcc
update the default coffeescript checker
...
No need to generate a file when linting, as the coffeescript compiler
will do that for you.
This has been tested with coffeescript 1.6.2.
Also: use options over flags for readibility
2013-04-01 20:33:58 -05:00
LCD 47
02a39b1c56
Updates errorformat in coffee.
2013-03-28 19:04:29 +02:00
LCD 47
b9dc0829ef
Fixes the sparse checker.
...
Also allows %v to be used in errorformat.
2013-03-27 16:06:47 +02:00
LCD 47
1247394786
Add subchecker to syntastic#makeprg#build() calls.
2013-03-27 11:17:15 +02:00
LCD 47
0ce25edcc6
Set subchecker.
2013-03-26 22:42:43 +02:00
Martin Grenfell
a3299364ca
sh/checkbashisms: remove unneeded l: variable prefixes
2013-03-26 19:52:40 +00:00
Martin Grenfell
818b4a5365
Merge pull request #574 from aswna/master
...
Added new sh checker: checkbashisms.
2013-03-26 12:52:01 -07:00
LCD 47
73a72bdc25
Try to cope with older versions of jshint.
2013-03-26 21:40:20 +02:00
aswna
259f7717fb
Use and adapt to more recent checkbashisms.pl. Some refactoring.
2013-03-26 00:40:50 +01:00
LCD 47
36f6cd471e
Typo in cpp/gcc checker.
2013-03-25 17:12:13 +02:00
Martin Grenfell
9dd3052aac
Merge pull request #553 from amouravski/master
...
Updated the dart syntax checker.
2013-03-25 02:24:05 -07:00
aswna
cf1a639795
Removed unsafe tcsh checker.
2013-03-25 09:19:58 +01:00
Gregor Uhlenheuer
c3615fb063
Merge pull request #571 from lcd047/cleanup_dupes
...
Checkers cleanup
2013-03-24 12:41:58 -07:00
Gregor Uhlenheuer
747fed932d
Merge pull request #536 from trprice/master
...
Make.vim - Check g:syntastic_c_errorformat so that users can provide their own error format
2013-03-24 11:23:43 -07:00
aswna
01b3e89352
Added new sh checker: checkbashisms.
2013-03-23 01:30:26 +01:00
Martin Grenfell
46395567af
Merge pull request #569 from lcd047/css_phpcs
...
PHPCS can check CSS files.
2013-03-21 01:32:38 -07:00
LCD 47
fb090ec277
Another bug fix.
2013-03-20 21:44:43 +02:00
LCD 47
e7aacdabf9
Bug fix.
2013-03-20 20:09:15 +02:00
LCD 47
1cab34063a
Checkers cleanup.
...
Elliminates duplicate code.
Brings gcc cpp, objc, and ada checkers in synch with c.
Minor bug fixes.
2013-03-20 11:31:45 +02:00
LCD 47
1ae871e39d
Cleanup: defer to php/phpcs.vim.
2013-03-20 09:07:07 +02:00
Brian Peiris
96658758d6
Add support for JSHint's secondary error format
...
JSHint has a secondary error format that includes a number related to the error message.
E.g. The normal error format is something like:
.\Foo.js: line 2, col 5, Missing semicolon. (W033)
But the secondary error format includes a number in parentheses:
.\Foo.js: line 3, col 4, Blocks are nested too deeply. (2) (W073)"
I've changed the errorformat to read the message until it hits a space, instead of a period, so that these errors are included.
2013-03-19 17:27:38 -03:00
LCD 47
dbf6685b18
PHPCS can check CSS files.
2013-03-18 22:22:24 +02:00
Martin Grenfell
fa46a82860
ruby/mri: add highlight regex function
...
Make it work for unused variable warnings
2013-03-18 13:38:30 +00:00
Martin Grenfell
5117e76f99
Merge pull request #568 from lcd047/phpmd_syntax
...
Syntax highlighting function for phpmd
2013-03-18 05:54:05 -07:00
LCD 47
7846502a95
Added a syntax highlighting function.
2013-03-18 14:08:05 +02:00
Martin Grenfell
7250aae562
Merge pull request #567 from Chewie/syntastic_c_compiler
...
Added documentation for the g:syntastic_c_checker option
2013-03-18 04:00:03 -07:00
Martin Grenfell
073eae9884
Revert "python/flake8: add some backwards compat"
...
This reverts commit 0ef513a0a8
.
The cases that I was trying to catch here were already caught further
along in the errorformat
2013-03-18 10:49:39 +00:00
Martin Grenfell
e01f3e2f6b
Merge pull request #559 from troydm/master
...
javac checker maven executable option added
2013-03-18 02:49:43 -07:00
Martin Grenfell
c350107da2
jshint: add a comment version requirements
2013-03-18 09:49:00 +00:00
Martin Grenfell
b32d8f21be
Merge pull request #562 from joshuarh/jshint-warnings
...
detect warnings in jshint
2013-03-18 02:47:59 -07:00
Martin Grenfell
291c3fa00b
Merge pull request #563 from Lasall/vala-modules-copy
...
Work with copy of g:syntastic_vala_modules list.
2013-03-18 02:45:37 -07:00
Martin Grenfell
0ef513a0a8
python/flake8: add some backwards compat
...
make it match E and W for flake < 2.0
2013-03-18 09:42:22 +00:00
Kévin Sztern
d1897fe482
Added documentation for the g:syntastic_c_checker option
2013-03-17 22:45:43 +01:00
Chronial
1315a85aee
recognize flake8 2.0 error output
2013-03-17 12:13:39 +01:00
Dominique Lasserre
0511f0a216
Work with copy of g:syntastic_vala_modules list.
2013-03-16 00:48:50 +01:00
Josh
f05a277f92
detect warnings in jshint
...
pass `jshint` the `--verbose` option to get 'W' or 'E' indicating
whether something is a warning or an error.
NOTE: this was tested with jshint 1.1.0 installed with `npm install
jshint`
2013-03-15 16:30:08 -05:00
troydm
b475f08fed
maven executable option added
2013-03-13 20:00:17 +04:00
amouravski
964e17f4b3
Updated the dart syntax checker.
...
It now uses the correct path for the dart_analyzer, it uses the
machine readable format to provide more information.
The highlighter now highlights the exact span that the analyzer complains
about. Further, warnings are different from errors now.
2013-03-11 19:25:01 -07:00
Christian Höltje
2f4fc38053
Renamed version check function
...
Moved the `SyntasticIsVersionAtLeast()` into `util.vim` as
`syntastic#util#versionIsAtLeast()` as per @scrooloose's suggestion.
2013-03-08 11:58:49 -05:00
Martin Grenfell
2003c772b0
Merge pull request #465 from chazlever/master
...
Fix Flake8 Error/Warning Parsing
2013-03-08 07:10:55 -08:00
Martin Grenfell
e61aab2b12
Merge pull request #534 from xandox/master
...
Use mix for elixir if it available and vim started from project root
2013-03-08 06:53:48 -08:00
Martin Grenfell
eef491c5ac
Merge pull request #538 from joshuarh/simplify-ruby-checker
...
remove unused function (because of 2519d83
)
2013-03-08 06:50:24 -08:00
Martin Grenfell
7533269ae1
Merge pull request #540 from lcd047/chktex
...
New checker for TeX / LaTeX: ChkTeX.
2013-03-08 06:49:15 -08:00
LCD 47
ff3c05a413
Fix syntax highlighting.
...
The variable force_highlight_callback is gone.
Highlight functions are now consistently named
SyntaxCheckers_<filetype>_<checker>_GetHighlightRegex(), and they
take precedence over highlighting based on column.
2013-03-08 14:45:57 +00:00
Christian Höltje
6a1f624041
Typo: Check for puppet-lint, not puppet
2013-03-07 21:30:44 -05:00
LCD 47
387c3bc264
New checker for TeX / LaTeX: ChkTeX.
2013-03-02 09:15:23 +02:00
Josh Hoff
746d0c063f
remove unused function (because of 2519d83
)
2013-02-28 19:29:58 -06:00
Brendan Erwin
fe87bb8b03
This allows the overrides to work
2013-02-28 07:38:25 -05:00
Taylor Price
28adb9feb9
Add a check for the error messages variable so that users can specify their own error format.
2013-02-27 11:29:40 -08:00
Martin Grenfell
2519d83569
Merge pull request #483 from medlefsen/fix_mri_ruby
...
Ruby checker breaks with rvm when using "system" ruby
2013-02-26 07:46:37 -08:00
Ely Arzhannikov
9d7b358d3d
always return list
2013-02-24 19:16:06 +06:00
Ely Arzhannikov
a5024b1176
use mix for elixir
2013-02-23 18:01:44 +06:00
Taylor Price
fe346c8a41
For each of thise files, the IsAvailable function was mistakenly named with GetLocList.
2013-02-21 14:57:35 -08:00
Taylor Price
91e8b1ce84
Change the - (dash) in the header guard to _ (underscore) to fix an unxepected characters error
2013-02-21 10:10:22 -08:00
Martin Grenfell
342a13eec2
Merge pull request #514 from dominic-goog/master
...
fix 'missing endfunction' error for dart
2013-02-21 08:30:10 -08:00
Martin Grenfell
fce786f59a
Merge pull request #516 from mybuddymichael/master
...
Don't pass -fno-code to Haskell's ghc
2013-02-21 08:23:29 -08:00
Martin Grenfell
b7301ba258
Merge pull request #517 from trprice/master
...
Fix the "Missing :endfunction" in syntax_checkers\objc\gcc.vim
2013-02-21 08:21:48 -08:00
Martin Grenfell
16424e5761
add guards to all checkers
...
goddamn I love macros
2013-02-21 15:50:41 +00:00
Martin Grenfell
31789e4e8e
lisp/clisp: add a missing comma
2013-02-21 15:21:43 +00:00
Taylor Price
475f3f934c
Change the endif on SyntaxCheckers_objc_gcc_IsAvailable to endfunction
2013-02-19 16:51:07 -08:00
Michael Hanson
dd4e3af44d
Don't pass -fno-code to ghc
2013-02-19 15:19:04 -08:00
Dominic Hamon
a875cd2101
Update syntax_checkers/dart/dart_analyzer.vim
2013-02-19 13:14:21 -08:00
LCD 47
4842eed1ba
Drop g:syntastic_perl_perlcritic_options.
...
This variable has been rendered obsolete by the standard mechanism
of g:syntastic_perl_perlcritic_args.
2013-02-16 09:34:58 +02:00
Martin Grenfell
0fcf795140
coffeelint: remove unused and unneeded coffelint args option
2013-02-15 10:14:34 +00:00
Martin Grenfell
1d681c546d
vala: remove the option to disable it
...
This can be done with:
`let g:syntastic_mode_map={'passive_filetypes': 'vala'}` or by setting
`let g:syntastic_vala_checkers=[]`
Closes #502 .
2013-02-14 15:52:40 +00:00
Martin Grenfell
c787bca6de
twig: use syntastic#makeprg#build
2013-02-11 17:42:43 +00:00
Mikhail Vinogradov
417fd8b484
Added explicit call of escript
...
Added explicit call of escript, to run check, bypassing shell (actual for Windows)
2013-02-11 02:18:56 +04:00
Martin Grenfell
6acff371af
rst: extract a temp var to a query
2013-02-10 16:50:49 +00:00
Martin Grenfell
3049323c74
Merge pull request #492 from tobyS/fix-rst-alternative-checker-binary
...
Fixed: Check for alternative rst2pseudoxml binary.
2013-02-09 09:52:48 -08:00
Martin Grenfell
df9ca84a22
html/tidy: retarded bugfix with s:Args not returning a value
2013-02-08 16:27:07 +00:00
Tobias Schlitt
1d3bbf2aae
Fixed: Check for alternative rst2pseudoxml binary.
...
On some systems, the corresponding binary is named "rst2pseudoxml"
instead of "rst2pseudoxml.py".
2013-02-07 09:23:50 +01:00
LCD 47
b33e37470f
Output from pylint should be sorted.
2013-02-06 16:27:49 +02:00
Martin Grenfell
368505eb60
coffee: split up coffee and coffeelint
2013-02-06 13:59:27 +00:00
LCD 47
f5dc5b1ad4
Off by one error, sorry. :(
2013-02-06 15:48:58 +02:00
LCD 47
b53072bee0
Munge the output of pylint in Vim rather than relying on sed(1).
2013-02-06 15:29:56 +02:00
Martin Grenfell
c41f2c8917
bugfix for c/ycm
2013-02-05 14:54:56 +00:00
Asai Masami
438fc33311
add cp932 to tidy.vim.
2013-02-05 21:52:27 +09:00
Matt Edlefsen
c658f06756
Remove broken rvm handling in mri ruby checker
...
RVM does not always provide an executable for specific ruby version
that is loaded (the "system" version).
RVM, or whatever else the user uses, should always setup "ruby" to point
to the correct version so this can always be used.
2013-02-05 07:07:52 -05:00
Martin Grenfell
76d1d42d64
perlcritic: :retab the file to make the indenting consistent
...
Syntastic uses 4 space indents, update this file to be consistent.
2013-02-05 09:11:21 +00:00
Martin Grenfell
8f6dbbced4
Merge pull request #470 from Valloric/ycm_bad_merge_fix
...
Fixing the errors in the ycm files
2013-02-05 01:02:25 -08:00
Martin Grenfell
88b549ca3b
Merge pull request #477 from lcd047/master
...
Minor fix + new syntax checker for Perl using perlcritic
2013-02-05 01:01:19 -08:00
Martin Grenfell
8fa22b7533
fix a bug with the yaml checker
2013-02-04 23:40:40 +00:00
Thanatermesis
a956a81432
Included some warning/errors to ignore
...
In today's html editing, almost nobody writes a "pure" html code
(complete, i mean), with body, title, etc... most of people uses CMS's
and similar things, which means that the html is just a "piece" of html
and not the entire structure, the changes on this branch are meant to
ignore those annoying warnings
The last line is for structures that includes the "&" character, like in
those kind of cases: < a href="http://foo.bar/something.php&value&something&foo " >
2013-02-04 19:00:10 +01:00
Martin Grenfell
d71f01a31c
json/jsonval: fix a typo
2013-02-04 17:40:55 +00:00
kongo2002
e00627007d
add 'make' as a C syntax checker
2013-02-04 17:54:59 +01:00
LCD 47
ab7876eee0
Perl syntax checker using perlcritic.
2013-02-03 20:42:04 +02:00
Martin Grenfell
51e5f1f9fa
less: fix a bug from the big refactor
2013-02-03 18:00:32 +00:00
Martin Grenfell
ac67114efa
fix a typo bug in the cpp/ycm checker
2013-02-01 21:24:27 +00:00
Martin Grenfell
f67d4881ca
remove some old (now unused) code from the main plugin
2013-02-01 09:57:25 +00:00
Strahinja Val Markovic
03a81bdb31
Fixing the ycm files
...
The new Syntastic API was not correctly merged into these files. This commit
should fix this.
2013-01-31 18:39:05 -08:00
Martin Grenfell
653611ccac
split up php checker into php, phpmd and phpcs
2013-01-31 17:31:40 +00:00
Martin Grenfell
05feca29d7
fix a couple of bugs in the c/gcc checker
...
(introduced in the epic refactor)
2013-01-31 16:56:29 +00:00
Martin Grenfell
79564f9847
fix a bug with the checkpatch checker
...
(introduced in the epic refactor)
2013-01-31 16:41:16 +00:00
Martin Grenfell
f252874a81
remove some, now unused, syntax checker files
2013-01-31 10:48:24 +00:00
Martin Grenfell
a06632a1ac
Merge branch 'refactor_checker_structure' into merge-with-refactor
...
Conflicts:
syntax_checkers/cpp/gpp.vim
syntax_checkers/objc/gcc.vim
2013-01-31 10:43:22 +00:00
Martin Grenfell
4552884c6c
bugfix for eruby checker
2013-01-30 17:04:45 +00:00
Chaz Lever
1fc5f28583
Merge remote-tracking branch 'scrooloose/master'
2013-01-29 17:42:10 -05:00
Martin Grenfell
033fb2763a
fix a couple of bugs with ruby checkers
2013-01-27 23:59:25 +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
kongo2002
59f7feb046
Merge remote-tracking branch 'valoric/ycm_support'
2013-01-24 21:10:19 +01:00
Jeroen Budts
f144091b59
php: fix phpmd to use post_args
...
PHP mess detector expects the filename as the first argument, followed
by the output format and the rules. To fix this, use the 'post_args' to
provide the arguments.
Also change the subchecker to 'phpmd' instead of 'phpcs'.
2013-01-24 16:58:08 +01:00
Martin Grenfell
58ba8d3161
refactor how we represent and store checkers using python as a demo
...
Add 2 classes: SyntasticChecker and SyntasticRegistry.
SyntasticChecker represents a checker. It holds funcrefs to the checker
func, the highlight regex func and a new `isAvailable()` func (that
essentially just checks if the checker exe is installed)
SyntasticRegistry is responsible for:
* loading checkers
* storing checkers
* fetching the checkers to use according to availability and the users
settings
Motivation/benefits:
* in the current system only one checker can be loaded per filetype
* syntax checkers cant be "chained" together
* the system is hard to add features to since fundamental concepts like
syntax checkers and location lists arent represented explicitly
Things left to do:
* add a call to g:SyntasticRegistry.CreateAndRegisterChecker() to all
checkers
* add an `isAvailable` function to all checkers
* move all checkers into `syntax_checkers/filetype/checkername.vim` -
g:SyntasticRegistry assumes this layout, and its a good idea anyway
for consistency and it makes it easier for users to add their own
checkers
Things to do after all of the above:
* add a LocationList class and move all the filtering functions onto it
* possibly add an Error class that wraps up each item in a loc list
Random notes:
* with the new system you can select the checkers to use with e.g.
`let g:syntastic_python_checkers=['flake8', 'pylint']`
This will try flake8 first, and if no errors are detected it will move
onto pylint.
2013-01-24 00:19:13 +00:00
Martin Grenfell
8095909dcc
Merge pull request #454 from asm89/twig
...
Add support for *.twig files
2013-01-23 11:25:38 -08:00
troydm
d4e0c2eee8
javac checker added fix for glob function
2013-01-23 22:26:43 +04:00
Strahinja Val Markovic
0fef368da2
Refactor ycm usage into separate files
2013-01-22 20:29:47 -08:00
Chaz Lever
50561a87f7
Fix flake8 error/warning checking
...
Error/warning checking did not correctly parse output from flake8. This
resulted in Syntastic incorrectly displaying some warnings as errors.
2013-01-22 15:19:28 -05:00
Alexander
766c7ba8b1
Add support for *.twig files
2013-01-22 13:11:06 +01:00
Martin Grenfell
c10289fdeb
make php checker use syntastic#makeprg#build
2013-01-20 13:48:58 +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
James Pickard
214927789d
make note style consistent with other notes
2013-01-16 16:13:08 -05:00
James Pickard
fd797e00f6
Add note about required version and nagelfar homepage
2013-01-16 16:03:32 -05:00
James Pickard
36393cd677
updated to user newer form of SyntasticLoadChecker('tcl')
2013-01-15 18:55:59 -05:00
James Pickard
f5b9c3641f
merged upstream
2013-01-15 18:50:28 -05:00
Strahinja Val Markovic
b93e51e260
c, objc and objcpp support
2013-01-14 21:12:53 -08:00
Strahinja Val Markovic
0040afbaf6
Adding support for ycm to the cpp filetype
...
Conflicts:
syntax_checkers/cpp.vim
2013-01-14 21:03:24 -08:00
Martin Grenfell
37e8e7d427
Merge pull request #436 from rumblesan/master
...
Use scala compiler, not interpreter, for syntax checking
2013-01-08 01:42:37 -08:00
Peter Hall
537900d6b2
Fixing puppet-lint syntax check when using
...
syntastic_puppet_lint_arguments variable
2013-01-08 15:50:43 +11:00
Guy John
850046bc08
Use scala compiler instead of interpreter
...
Using the scala compiler instead of the interpreter to check the syntax
means that an error will not be raised if there is a package
decleration.
Also, stopping the compiler after the parser stage stops errors being
raised when importing from other files in your project.
2013-01-03 12:35:46 +00:00
Martin Grenfell
10c845d1f5
add a makeprg builder
...
The problem
---
Some people want to change the syntax checker args and/or executable.
Currently they have to create their own checker to do this.
Solution
---
Create a standard API for building a makeprg that allows users to set
global variables to override the exe or args.
This API is in use in the coffee and python/flake8 checkers - as
proofs of concept.
So, if the user wanted to change the args that get passed to `flake8`
they can now set `let g:syntastic_python_flake8_args="--foo --bar"` in
their vimrc. Similarly they could set `let
g:syntastic_python_flake8_exe='python foo.py'`
2013-01-02 13:05:27 +00:00
Martin Grenfell
5fbe86db7b
Merge pull request #428 from powerman/efm_perl
...
Efm perl: few fixed
2013-01-02 05:02:48 -08:00
Martin Grenfell
ed8ef51f49
Merge pull request #427 from troydm/master
...
javac checker quotes changed to fnameescape
2013-01-02 04:58:50 -08:00
Martin Grenfell
f5b0abb58a
Merge pull request #430 from maksimr/master
...
Added Dart support
2013-01-02 04:56:24 -08:00
Tom Jakubowski
56d1935dd2
Ignore tidy warning about "search" value for <input> type attribute
2012-12-24 04:30:42 -06:00
Maksim Ryzhikov
62d1da3b8d
add support dart
2012-12-21 22:44:58 +04:00
Alex Efros
68c381306e
efm_perl: add support for checking - (stdin)
...
In simple case it just miss warnings:
$ echo '$a=5;' | perl syntax_checkers/efm_perl.pl -c -w -
(nothing, while it should be this:)
W:-:1:Name "main::a" used only once: possible typo
In complex cases with some other errors it show crazy warnings
in crazy line numbers.
Use case when efm_perl run on STDIN can be found in issue#261.
2012-12-19 17:18:25 +02:00
Alex Efros
02a99d0e35
efm_perl: fix warning about uninitialized $opt_I
...
$ perl syntax_checkers/efm_perl.pl -c -w /dev/null
Use of uninitialized value $opt_I in split at syntax_checkers/efm_perl.pl line 94.
2012-12-19 17:10:58 +02:00
troydm
9f798fa4ef
javac quotes changed to fnameescape
2012-12-19 18:20:38 +04:00
troydm
e25a3efa33
javac checker path seperator related bugfix added
2012-12-19 17:43:08 +04:00
troydm
b476114461
added config file support for javac checker and windows os support
2012-12-19 17:23:58 +04:00
Martin Grenfell
7353b32d77
perl: add -Tc to makeprg if the shebang contains -T
...
If the shebang contains -T, then the makeprg looks like:
perl '/path/to/efm_perl.pl' -c -w '/tmp/foo.pl' -Tc
Mods to syntastic#util#ParseMagicNumber
* rename it to ParseShebang (since this name seems more common)
* return an empty result set rather than 0 so callers dont have to
check if empty()
2012-12-18 09:38:33 +00:00
Florent Bruneau
29d5b88e27
c/c++: force language in compiler invocation.
...
That way, the files are properly treated as C/C++ even when they don't
have the standard file extension
Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
2012-12-16 18:44:20 +01:00
Florent Bruneau
4b0b81cddc
c/c++: add an option to ignore default include dirs.
...
Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
2012-12-16 18:44:20 +01:00
Florent Bruneau
91f3af2862
c: allow using clang to check C.
...
Since clang as a interface compatible with gcc's, use the gcc backend for
both.
Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
2012-12-15 13:41:23 +01:00
Martin Grenfell
163d5fb370
php: add a bit of doc at the top
2012-12-05 23:34:13 +00:00
Adam Fairbrother
c253e3e4d9
Update syntax_checkers/efm_perl.pl
...
Added a semi colon in that broke perl syntax checking.
2012-12-05 12:57:47 -08:00
Martin Grenfell
fc4ec2533c
Merge branch 'load_any_checker'
2012-12-04 09:33:34 +00:00
Martin Grenfell
2c0abf4515
perl: fix some comments that got slightly screwed
2012-12-03 23:55:54 +00:00
notbugger
558de5a58c
Update syntax_checkers/efm_perl.pl
...
Use warnings pragma instead of warnings flag.
2012-12-03 15:42:31 -08:00
Martin Grenfell
42480a01a1
modify SyntasticLoadChecker to load any checkers present
...
Previously we were only loading "official" checkers that had been added
to syntastic. Now we load any checker that is in the right directory.
This allows anyone to add custom checkers to any filetype that uses
`SyntasticLoadChecker()`
2012-12-03 21:22:44 +00:00
Martin Grenfell
6d5a604251
Merge pull request #409 from jhickner/master
...
Add -fno-code to the call to ghc-mod, which speeds up haskell syntax checking
2012-12-03 03:02:39 -08:00
Martin Grenfell
11907f6907
Merge pull request #413 from jgrande/master
...
docbook checker: added quotes to args in expand() call
2012-12-03 01:59:09 -08:00
Martin Grenfell
d4e74d81d8
typescript: dont need to escape the space inside a string
2012-12-03 09:57:06 +00:00
Martin Grenfell
1b237eba14
Merge pull request #416 from jb55/typescript
...
Fix TypeScript errorformat for latest version of the compiler
2012-12-03 01:56:27 -08:00
Martin Grenfell
ac0c732f6a
Merge pull request #410 from dbarnett/loaded_flag
...
Set g:loaded_FOO_syntax_checker in syntastic.vim, not every ft file.
2012-12-03 01:52:23 -08:00
Bill Casarin
562a37adce
Support zero or more spaces at the end of a filename in the typescript errorformat
2012-12-01 21:07:51 -05:00
Artem Nezvigin
4126760bca
Add python checker that uses python itself
...
The advantage to this is that no 3rd party modules are required. People
new to Python probably won't have flake8/pyflakes/pylint installed. This
will get them basic syntax checking (no linting) out of the box.
2012-12-01 12:17:46 -08:00
Bill Casarin
7ceba36412
Fix typescript errorformat for latest version of the compiler
2012-11-30 10:13:12 -05:00
Juan Grande
45f5437088
docbook checker: added quotes to args in expand() call
2012-11-29 09:07:25 -03: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
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
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
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
0765f97dd3
refactor out some duplication of /dev/null logic
2012-10-23 22:37:11 +01: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
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
Bill Casarin
6fbef6493c
Added initial typescript support
2012-10-03 10:37:41 -04:00
kongo2002
d6a03e36e4
initialize g:syntastic_cpp_compiler_options to default
...
This commit addresses pull request #373
2012-09-29 12:34:53 +02:00
Cory Fabre
66e5f3b59b
Add support for changing the ruby version for erb
2012-09-27 11:02:46 -05:00
Daniel Walker
e6259f9010
Add sparse as a new C syntax checker.
2012-09-26 17:30:29 -07:00
Richard Brown
be92722913
less: Fix logic for when to use less-lint
2012-09-26 12:33:48 +01:00
Martin Grenfell
0b5127886f
Merge pull request #364 from rbrown/sass_partial
...
By default do not check sass partials.
2012-09-25 08:29:09 -07:00
Richard Brown
6c80fa9d59
ruby/mri: ignore efm lines that start ...
...
If the line a ruby error occurs on is 'too long' it will truncate the line it
displays in the error output and wrap it in `...`. This breaks %p from finding
the correct column so this patch ignores lines starting with `...`
e.g. %p working
```
ruby -w -T1 -c broken.rb
broken.rb:2: syntax error, unexpected tIDENTIFIER, expecting $end
puts sprintf "%d, %.2f, %.2f, %.2f, %d" k, v
^
```
%p not working
```
ruby -w -T1 -c broken.rb
broken.rb:2: syntax error, unexpected tIDENTIFIER, expecting $end
...tf "%d, %.2f, %.2f, %.2f, %d" k, v[:cost], v[:val], v[:carri...
... ^
```
2012-09-25 15:23:47 +01:00
Richard Brown
47a4c8ef6f
By default do not check sass partials.
...
Sass partials depend on their parents files for context. This patch disables the
syntax checking for partials by default because of this. To enable checking of
partials let g:syntastic_sass_check_partials = 1. Fixes issue #300 .
2012-09-25 10:03:06 +01:00
Martin Grenfell
c2a16e88f8
Merge pull request #319 from delphinus35/master
...
[Perl] enable to specify multiple external libs
2012-09-23 16:14:49 -07:00
Martin Grenfell
2dfc153500
Merge pull request #321 from troydm/master
...
java syntax checker rewritten and added checkstyle syntax checker
2012-09-23 16:07:53 -07:00
kongo2002
d4ef5f7284
Merge remote-tracking branch 'daniel-walker/checkpatch-checker'
2012-09-23 23:24:50 +02:00
Gregor Uhlenheuer
bde48f6fc5
Merge pull request #348 from daniel-walker/objc-checker
...
Add a gcc based checker for Objective-C .
2012-09-23 13:47:36 -07:00
kongo2002
1bbfbeb3a3
add compiler options to C header checking too
2012-09-23 22:58:42 +02:00
kongo2002
acb35ec088
Merge remote-tracking branch 'likr/cppfix'
2012-09-23 22:51:52 +02:00
Martin Grenfell
c98c64191a
Merge pull request #320 from rbrown/fix_php_53_and_54
...
PHP: Work with php-5.3 and php-5.4
2012-09-23 07:42:54 -07:00
Martin Grenfell
c13ce4bf9f
remove support for less < 1.2
...
This was added in jan 2012. The current version is 1.3. Hard to imagine
anyone is still using < 1.2
2012-09-23 15:30:16 +01:00
Martin Grenfell
2387aba46c
less: init the syntastic_less_use_less_lint separately
2012-09-23 15:26:59 +01:00
Martin Grenfell
2411135208
Merge remote-tracking branch 'rbrown/less-lint' into less-lint
2012-09-23 14:10:23 +01:00
Martin Grenfell
ac9ff106d5
slim checker: remove a stray debugging echo call
2012-09-23 13:56:01 +01:00
Richard Brown
d2d8bb926d
slim: errorformat includes column if slimrb --version > 1.3.0
2012-09-22 20:20:11 +01:00
Richard Brown
87f10e54d4
Make IsVersionAtLeast global
2012-09-22 19:51:12 +01:00
Martin Grenfell
a71048daac
Merge pull request #352 from daniel-walker/csharp
...
Adds a syntax checker for C# using Mono
2012-09-22 07:20:23 -07:00
Martin Grenfell
43ac7506c8
Merge pull request #360 from rbrown/slim
...
Add checker for slim http://slim-lang.com
2012-09-22 07:18:58 -07:00
Yosuke ONOUE
c0676a74d9
Fixed compiler options for C++ header check.
2012-09-22 21:20:57 +09:00
Richard Brown
507023ee82
Add checker for slim http://slim-lang.com
2012-09-21 22:28:11 +01:00
Richard Brown
fbcb0b99ac
less: Add a linter script to avoid compiling files.
...
Using lessc to check a less file results in a NameError if the file references a
variable defined in a file that inherits it. This commit adds a new linter that
just calls the less parser instead. The variable g:syntastic_less_use_less_lint
should be set to use the linter over lessc.
2012-09-20 14:15:33 +01:00
Richard Brown
758461b520
eruby: No need to call sed
...
The original fix for issue #7 used sed and didn't update the `executable` check
from cat to sed. This patch uses String.gsub when parsing an erb file instead,
as sed isn't neccesarily available.
2012-09-19 15:04:05 +01:00
Martin Grenfell
e3c3dda1c1
sh: relax makeprg to catch errors that werent getting parsed
...
Errors like this were not getting picked up:
/tmp/foo.sh: line 4: syntax error near unexpected token `)'
/tmp/foo.sh: line 4: `!!"£!")£!"£echo "foo"'
2012-09-18 00:37:56 +01:00
Martin Grenfell
f1d1827852
sh checker: extract out some logic into functions
2012-09-18 00:35:05 +01:00
Martin Grenfell
171776140b
Merge remote-tracking branch 'rbrown/sh2'
...
Conflicts:
syntax_checkers/sh.vim
2012-09-18 00:20:15 +01:00
Martin Grenfell
7e68e4b1f3
Merge pull request #325 from rbrown/sh
...
Fix issue #303 FilterLocList
2012-09-16 07:11:36 -07:00
Martin Grenfell
bf234f040f
Merge pull request #350 from kisielk/master
...
Added support for multi-line error messages in go.vim
2012-09-16 05:06:22 -07:00
Martin Grenfell
9c97ef1007
Merge pull request #351 from bryankennedy/html5-source-fix
...
Adding the HTML5 <souce> tag to valid tag list …
2012-09-16 04:55:35 -07:00
Richard Ramsden
eb503ed4ba
add support for elixir language
2012-09-15 19:24:02 -07:00
bryan kennedy
8d4e096599
Adding the HTML5 <souce> tag to valid tag list …
...
The HTML5 <source> tag throws an error when using Tidy since exceptions
have been made for audio and video, we should also support the source
tag which can exist inside these calls.
2012-09-11 12:37:57 -05:00
Daniel Walker
ed0da303a1
Adds a syntax checker for C# using Mono
2012-09-10 18:29:08 -07:00
Kamil Kisiel
b1dc62076b
Added support for multi-line go errors in go.vim
2012-09-09 15:24:55 -07:00
Daniel Walker
e409f1ceb5
Add a gcc based checker for Objective-C . This checker is just a
...
slightly modified version of the C checker. I did a find/replace to make
it use "_objc_" instead of "_c_" . I also modified the errorformat to
look more like the cpp errorformat because I discovered that the entries
added to the C errorformat no longer seem to match anything.
2012-09-08 11:32:18 -07:00
Richard Brown
e6a22210ec
Remove wrong call to runtime in wrong file
2012-09-07 11:32:29 +01:00
Daniel Walker
eef0180f8b
Add a syntax checker for the Linux kernel checkpatch.pl utility.
...
I modified the C checker so checkpatch could be given as an alternate
checker for C files.
2012-09-06 18:41:09 -07:00
Richard Brown
0140f4baca
Add syntax checker for ft=zsh
...
The current sh.vim checks for ft=sh and #!/bin/zsh This add a checker
specifically for ft=zsh and changes sh.vim to call the same code.
2012-09-06 09:53:34 +01:00
Richard Brown
f1758b6e61
Use SyntasticMake in sh.vim
...
Simplifies sh.vim by using SyntasticMake, also fixes #303
2012-09-06 09:52:06 +01:00
Bit Connor
2ab6f7f50b
haskell checker: Use hdevtools if available instead of ghc-mod
2012-09-03 17:01:02 +03:00
Martin Grenfell
9d6a3a8341
ocaml dont use a: for local variables
2012-09-02 19:20:12 +01:00
Martin Grenfell
37389b51e0
ocaml: apply patch from adinapoli to fix my fails :)
2012-09-02 19:18:58 +01:00
Martin Grenfell
c5b985b96a
ocaml: refactor the makeprg code
...
The code to generate the makeprg was an epic jumble. Break it down into
separate methods.
Also, init several options at the top of the script and make some
executable() checks at the same time. This clears up some of the clutter
and means we only check it once - not on every syntax check.
2012-08-31 21:22:35 +01:00
Alfredo Di Napoli
4b4e3a7b42
Updated OCaml checker with the possibility to syntax check through ocamlc. Supports JaneStreet Core too.
2012-08-31 21:22:35 +01:00
Patrice Neff
6bf22df41d
Allow puppet validation to be disabled
...
This way only puppet-lint is used.
This is necessary on Windows where the Puppet executable is extremely slow.
2012-08-31 17:28:37 +02:00
Martin Grenfell
9eeaaf3abb
puppet: cache versions
...
Cache the version numbers when we first extract them.
Remove the "Extract" from the version number function names since it is
redundant and fugly.
2012-08-30 18:12:07 +01:00
Martin Grenfell
2bf439a7fc
puppet: extract version checking logic into a function
2012-08-30 18:03:20 +01:00
Richard Brown
1af59829df
puppet: Fix the puppet-lint version comparison.
...
The original comparison would disable puppet-lint for version 1.2.3 because 3 <
10 even though 2 > 1
2012-08-29 15:05:10 +01:00
Richard Brown
4467ab2663
puppet: Fix puppet-lint check
...
Original verison would always call puppet-lint even if the executable wasn't
present. Fixes issue #331
2012-08-29 15:04:17 +01:00
Richard Brown
6314305019
puppet: fix version extractors to ignore stderr
2012-08-29 15:02:48 +01:00
Richard Brown
fc31ec69cb
Fix issue #303 FilterLocList
...
999d3c1b
added a filter on the errors list that checks for key/value
valid:1 in each element of the errors list. sh.vim doesn't use
SyntasticMake to check for errors so needs to add {valid:1} to each
result.
2012-08-23 15:19:20 +01:00
troydm
4c519852b6
java checkstyle syntax checker added, added auto pom classpath detection and classpath editing for javac syntax checker
2012-08-14 19:56:20 +04:00
Richard Brown
a26d3aef58
PHP: Work with php-5.3 and php-5.4
...
The current makeprg doesn't work with php-5.3. display_errors=0 has
disabled error outputting and error_log='' disables the error log. With
php-5.4 error_log='' is causing errors to be logged to stderr.
This patch disables the error_log and enables display_errors.
Theoretically errors are displayed on stdout, however php in mountain
lion seems to insist on outputting to stderr.
As we're now displaying errors rather than logging them to error format
has changed to no longer include 'PHP ' and I've removed duplicates.
This has been tested with PHP 5.3.13 with Suhosin-Patch (cli) (built: Jun 20
2012 17:05:20) (mountain lion) and PHP 5.4.4 (cli) (built: Jul 2 2012
16:33:50) Fedora 17
2012-08-14 13:31:00 +01:00