mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 04:34:25 +08:00
@@ -10,7 +10,6 @@ function! ale_linters#tex#chktex#GetCommand(buffer) abort
|
|||||||
" Avoid bug when used without -p (last warning has gibberish for a filename)
|
" Avoid bug when used without -p (last warning has gibberish for a filename)
|
||||||
let l:options .= ' -v0 -p stdin -q'
|
let l:options .= ' -v0 -p stdin -q'
|
||||||
" Avoid bug of reporting wrong column when using tabs (issue #723)
|
" Avoid bug of reporting wrong column when using tabs (issue #723)
|
||||||
let l:options .= ' -s TabSize=1'
|
|
||||||
|
|
||||||
" Check for optional .chktexrc
|
" Check for optional .chktexrc
|
||||||
let l:chktex_config = ale#path#FindNearestFile(a:buffer, '.chktexrc')
|
let l:chktex_config = ale#path#FindNearestFile(a:buffer, '.chktexrc')
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ After:
|
|||||||
Execute(The default command should be correct):
|
Execute(The default command should be correct):
|
||||||
AssertLinter 'chktex',
|
AssertLinter 'chktex',
|
||||||
\ ale#Escape('chktex')
|
\ ale#Escape('chktex')
|
||||||
\ . ' -v0 -p stdin -q -s TabSize=1'
|
\ . ' -v0 -p stdin -q'
|
||||||
\ . ' -I'
|
\ . ' -I'
|
||||||
|
|
||||||
Execute(The executable should be configurable):
|
Execute(The executable should be configurable):
|
||||||
@@ -15,7 +15,7 @@ Execute(The executable should be configurable):
|
|||||||
|
|
||||||
AssertLinter 'bin/foo',
|
AssertLinter 'bin/foo',
|
||||||
\ ale#Escape('bin/foo')
|
\ ale#Escape('bin/foo')
|
||||||
\ . ' -v0 -p stdin -q -s TabSize=1'
|
\ . ' -v0 -p stdin -q'
|
||||||
\ . ' -I'
|
\ . ' -I'
|
||||||
|
|
||||||
Execute(The options should be configurable):
|
Execute(The options should be configurable):
|
||||||
@@ -23,5 +23,5 @@ Execute(The options should be configurable):
|
|||||||
|
|
||||||
AssertLinter 'chktex',
|
AssertLinter 'chktex',
|
||||||
\ ale#Escape('chktex')
|
\ ale#Escape('chktex')
|
||||||
\ . ' -v0 -p stdin -q -s TabSize=1'
|
\ . ' -v0 -p stdin -q'
|
||||||
\ . ' --something'
|
\ . ' --something'
|
||||||
|
|||||||
Reference in New Issue
Block a user