Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 710cf91

Browse files
committed
Sorting and return code for javascript/jscs.
1 parent 8151960 commit 710cf91

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

syntax_checkers/javascript/jscs.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ let g:loaded_syntastic_javascript_jscs_checker = 1
1717
let s:save_cpo = &cpo
1818
set cpo&vim
1919

20+
" we borrow SyntaxCheckers_java_checkstyle_Preprocess() from java/checkstyle
2021
runtime! syntax_checkers/java/*.vim
2122

2223
function! SyntaxCheckers_javascript_jscs_GetLocList() dict
@@ -26,7 +27,9 @@ function! SyntaxCheckers_javascript_jscs_GetLocList() dict
2627
\ 'makeprg': makeprg,
2728
\ 'errorformat': errorformat,
2829
\ 'subtype': 'Style',
29-
\ 'preprocess': 'SyntaxCheckers_java_checkstyle_Preprocess' })
30+
\ 'preprocess': 'SyntaxCheckers_java_checkstyle_Preprocess',
31+
\ 'postprocess': ['sort'],
32+
\ 'returns': [0] })
3033
endfunction
3134

3235
call g:SyntasticRegistry.CreateAndRegisterChecker({

0 commit comments

Comments
 (0)