Thanks to visit codestin.com
Credit goes to github.com

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

Commit 16424e5

Browse files
committed
add guards to all checkers
goddamn I love macros
1 parent 31789e4 commit 16424e5

74 files changed

Lines changed: 370 additions & 2 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

syntax_checkers/ada/gcc.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
"
5757
" let g:syntastic_ada_remove_include_errors = 1
5858

59+
if exists("g:loaded_syntastic_ada_gcc_checker")
60+
finish
61+
endif
62+
let g:loaded_syntastic_ada_gcc_checker=1
63+
5964
if !executable('gcc')
6065
finish
6166
endif

syntax_checkers/applescript/osacompile.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
" Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more details.
2525
"
2626
"============================================================================
27+
28+
if exists("g:loaded_syntastic_applescript_osacompile_checker")
29+
finish
30+
endif
31+
let g:loaded_syntastic_applescript_osacompile_checker=1
32+
2733
function! SyntaxCheckers_applescript_osacompile_IsAvailable()
2834
return executable('osacompile')
2935
endfunction

syntax_checkers/co/coco.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
" See http://sam.zoy.org/wtfpl/COPYING for more details.
1010
"
1111
"============================================================================
12+
if exists("g:loaded_syntastic_co_coco_checker")
13+
finish
14+
endif
15+
let g:loaded_syntastic_co_coco_checker=1
1216

1317
"bail if the user doesnt have coco installed
1418
if !executable("coco")

syntax_checkers/coffee/coffee.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
" See http://sam.zoy.org/wtfpl/COPYING for more details.
1010
"
1111
"============================================================================
12+
if exists("g:loaded_syntastic_coffee_coffee_checker")
13+
finish
14+
endif
15+
let g:loaded_syntastic_coffee_coffee_checker=1
16+
1217
function! SyntaxCheckers_coffee_coffee_IsAvailable()
1318
return executable("coffee")
1419
endfunction

syntax_checkers/coffee/coffeelint.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
" See http://sam.zoy.org/wtfpl/COPYING for more details.
1010
"
1111
"============================================================================
12+
if exists("g:loaded_syntastic_coffee_coffeelint_checker")
13+
finish
14+
endif
15+
let g:loaded_syntastic_coffee_coffeelint_checker=1
16+
1217
function! SyntaxCheckers_coffee_coffeelint_IsAvailable()
1318
return executable('coffeelint')
1419
endfunction

syntax_checkers/cpp/gcc.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@
7272
"
7373
" let g:syntastic_cpp_compiler = 'clang++'
7474

75+
if exists("g:loaded_syntastic_cpp_gcc_checker")
76+
finish
77+
endif
78+
let g:loaded_syntastic_cpp_gcc_checker=1
79+
7580
if !exists('g:syntastic_cpp_compiler')
7681
let g:syntastic_cpp_compiler = 'g++'
7782
endif

syntax_checkers/cs/mcs.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"
1111
"============================================================================
1212

13+
if exists("g:loaded_syntastic_cs_mcs_checker")
14+
finish
15+
endif
16+
let g:loaded_syntastic_cs_mcs_checker=1
17+
1318
function! SyntaxCheckers_cs_mcs_IsAvailable()
1419
return executable('mcs')
1520
endfunction

syntax_checkers/css/csslint.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"
1515
" let g:syntastic_csslint_options = "--warnings=none"
1616

17+
if exists("g:loaded_syntastic_css_csslint_checker")
18+
finish
19+
endif
20+
let g:loaded_syntastic_css_csslint_checker=1
21+
1722
if !exists('g:syntastic_csslint_options')
1823
let g:syntastic_csslint_options = ""
1924
endif

syntax_checkers/cucumber/cucumber.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"
1111
"============================================================================
1212

13+
if exists("g:loaded_syntastic_cucumber_cucumber_checker")
14+
finish
15+
endif
16+
let g:loaded_syntastic_cucumber_cucumber_checker=1
17+
1318
function! SyntaxCheckers_cucumber_cucumber_IsAvailable()
1419
return executable('cucumber')
1520
endfunction

syntax_checkers/cuda/nvcc.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
" let g:syntastic_cuda_arch = "sm_20"
2020

2121

22+
if exists("g:loaded_syntastic_cuda_nvcc_checker")
23+
finish
24+
endif
25+
let g:loaded_syntastic_cuda_nvcc_checker=1
26+
2227
function! SyntaxCheckers_cuda_nvcc_IsAvailable()
2328
return executable('nvcc')
2429
endfunction

0 commit comments

Comments
 (0)