Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updated plugins

  • Loading branch information...
commit ae4f9b95d56eb91f5a4da39bce8c2fe23a381d09 1 parent b2733a5
authored March 26, 2012
6  bundle/syntastic/syntax_checkers/python/pylint.vim
@@ -5,10 +5,10 @@
5 5
 "
6 6
 "============================================================================
7 7
 function! SyntaxCheckers_python_GetLocList()
8  
-    let makeprg = 'pylint -f parseable -r n -i y ' .
  8
+    let makeprg = 'pylint '.g:syntastic_python_checker_args.' -f parseable -r n -i y ' .
9 9
                 \ shellescape(expand('%')) .
10  
-                \ ' \| sed ''s_: \[[RC]_: \[W_''' .
  10
+                \ ' 2>&1 \| sed ''s_: \[[RC]_: \[W_''' .
11 11
                 \ ' \| sed ''s_: \[[F]_:\ \[E_'''
12  
-    let errorformat = '%f:%l: [%t%n%.%#] %m,%-GNo config%m'
  12
+    let errorformat = '%f:%l: [%t%n%.%#] %m,%f:%l: [%t%.%#] %m,%Z,%-GNo config%m'
13 13
     return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
14 14
 endfunction
16  bundle/syntastic/syntax_checkers/vala.vim
@@ -6,6 +6,9 @@
6 6
 "             "// modules: " and containing space delimited list of vala
7 7
 "             modules, used by the file, so this script can build correct
8 8
 "             --pkg arguments.
  9
+"             Alternatively you can set g:syntastic_vala_modules array
  10
+"             in your .vimrc or .lvimrc with localvimrc plugin
  11
+"             (http://www.vim.org/scripts/script.php?script_id=441).
9 12
 "             Valac compiler is not the fastest thing in the world, so you
10 13
 "             may want to disable this plugin with
11 14
 "             let g:syntastic_vala_check_disabled = 1 command in your .vimrc or
@@ -38,10 +41,19 @@ function! SyntaxCheckers_vala_GetHighlightRegex(pos)
38 41
 endfunction
39 42
 
40 43
 function! s:GetValaModules()
  44
+    if exists('g:syntastic_vala_modules')
  45
+        if type(g:syntastic_vala_modules) == type('')
  46
+            return split(g:syntastic_vala_modules, '\s\+')
  47
+        elseif type(g:syntastic_vala_modules) == type([])
  48
+            return g:syntastic_vala_modules
  49
+        else
  50
+            echoerr 'g:syntastic_vala_modules must be either list or string: fallback to in file modules string'
  51
+        endif
  52
+    endif
  53
+
41 54
     let modules_line = search('^// modules: ', 'n')
42 55
     let modules_str = getline(modules_line)
43  
-    let modules = split(strpart(modules_str, 12), '\s\+')
44  
-    return modules
  56
+    return split(strpart(modules_str, 12), '\s\+')
45 57
 endfunction
46 58
 
47 59
 function! SyntaxCheckers_vala_GetLocList()

0 notes on commit ae4f9b9

Please sign in to comment.
Something went wrong with that request. Please try again.