Commit Graph

944 Commits

Author SHA1 Message Date
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
Martin Grenfell
6cf4581d57 Merge pull request #491 from lcd047/master
Pylint output should be sorted
2013-02-06 06:32:42 -08: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
Martin Grenfell
8a8bb39af3 Merge pull request #490 from lcd047/master
Off by one error
2013-02-06 05:54:00 -08:00
LCD 47
0a0c6fa049 Merge remote-tracking branch 'upstream/master' 2013-02-06 15:51:12 +02:00
LCD 47
f5dc5b1ad4 Off by one error, sorry. :( 2013-02-06 15:48:58 +02:00
Martin Grenfell
9f08ff9cf6 html: only try to run tidy by default - not w3c
The w3c checker goes out to the internet to get its results so disable
it by default.
2013-02-06 13:47:41 +00:00
Martin Grenfell
6b905fed2a Merge pull request #489 from lcd047/master
Remove sed(1) dependency from pylint
2013-02-06 05:43:41 -08: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
Martin Grenfell
d6806c1f20 Merge pull request #484 from pipboy3000/cp932add
Add cp932(Windows-31J) support to tidy.vim.
2013-02-05 05:13:42 -08:00
Asai Masami
438fc33311 add cp932 to tidy.vim. 2013-02-05 21:52:27 +09: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
Martin Grenfell
b43716091b Merge pull request #478 from Elive/html-ignore-annoying-errors
Included some warning/errors to ignore
2013-02-04 10:06:37 -08: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
LCD 47
17641c0a49 Minor omission in commit 8f4695c. 2013-02-03 20:36:55 +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
a66c19f731 move the MakeprgBuilder class in with the rest of the classes 2013-02-01 17:06:32 +00:00
Martin Grenfell
59cbf1c69e dont call setloclist() until the user calls :Errors 2013-02-01 16:52:11 +00:00
Martin Grenfell
0b0dbc56e6 dont allow checkers with duplicate names for the same filetype 2013-02-01 15:01:31 +00:00
Martin Grenfell
c97951b601 make a few refactors
Add CurrentFiletypes function as this logic was getting used in a couple
of places and needed a home/name - mostly because of the bizarre
substitute call that needs explanation.

Move the code to get a syntax checker by name into SyntasticRegistry
2013-02-01 14:38:53 +00:00
Martin Grenfell
0b3e074f8c Merge remote-tracking branch 'dbarnett/cmd_arg' 2013-02-01 14:18:31 +00:00
Martin Grenfell
8f4695c6de add a class to encapsulate loclists
Add SyntasticLoclist class to wrap up loclists, and move loclist query
methods from syntatic.vim to the new class.

Make SyntasticChecker#getLocList() return a SyntasticLoclist.
2013-02-01 14:17:55 +00:00
Martin Grenfell
f67d4881ca remove some old (now unused) code from the main plugin 2013-02-01 09:57:25 +00:00
David Barnett
40de98c2fc Add completion for checker name in :SyntasticCheck command 2013-01-31 23:36:41 -08:00
David Barnett
557321faae Support checker name as argument to :SyntasticCheck 2013-01-31 23:20:24 -08: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
c166029fd8 add a couple more default checker settings 2013-01-31 10:52:15 +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
Martin Grenfell
a4a7b5697c update how checkers are chosen
* add a system for setting default checkers
* return the first check we find, unless told to chain checkers together
  by default settings, or user settings
2013-01-27 23:59:47 +00: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
Martin Grenfell
bc8d6722bc Merge pull request #460 from teranex/master
Fix php mess detector in php
2013-01-24 08:01:16 -08: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