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 6a176a6

Browse files
committed
Checker lessc: deprecate variable "less_options".
1 parent caa96a0 commit 6a176a6

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

plugin/syntastic.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if has('reltime')
1919
lockvar! g:_SYNTASTIC_START
2020
endif
2121

22-
let g:_SYNTASTIC_VERSION = '3.7.0-120'
22+
let g:_SYNTASTIC_VERSION = '3.7.0-121'
2323
lockvar g:_SYNTASTIC_VERSION
2424

2525
" Sanity checks {{{1

syntax_checkers/less/lessc.vim

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ if exists('g:loaded_syntastic_less_lessc_checker')
1515
endif
1616
let g:loaded_syntastic_less_lessc_checker = 1
1717

18-
if !exists('g:syntastic_less_options')
19-
let g:syntastic_less_options = ''
20-
endif
21-
2218
if !exists('g:syntastic_less_use_less_lint')
2319
let g:syntastic_less_use_less_lint = 0
2420
endif
@@ -34,13 +30,10 @@ function! SyntaxCheckers_less_lessc_IsAvailable() dict
3430
endfunction
3531

3632
function! SyntaxCheckers_less_lessc_GetLocList() dict
37-
if !exists('s:check_file')
38-
let s:check_file = g:syntastic_less_use_less_lint ? s:node_file : self.getExecEscaped()
39-
endif
33+
call syntastic#log#deprecationWarn('less_options', 'less_lessc_args')
4034

4135
let makeprg = self.makeprgBuild({
42-
\ 'exe': s:check_file,
43-
\ 'args': g:syntastic_less_options,
36+
\ 'exe': (g:syntastic_less_use_less_lint ? s:node_file : self.getExecEscaped()),
4437
\ 'args_after': '--no-color',
4538
\ 'tail': '> ' . syntastic#util#DevNull() })
4639

0 commit comments

Comments
 (0)