Skip to content

Commit

Permalink
4712 revert chktex 4661 (#4725)
Browse files Browse the repository at this point in the history
* Fix 4712 - revert #4661

* Fix tests
  • Loading branch information
hsanson committed Feb 26, 2024
1 parent 9cc8383 commit 00dcf52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion ale_linters/tex/chktex.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
let l:options .= ' -v0 -p stdin -q'
" Avoid bug of reporting wrong column when using tabs (issue #723)
let l:options .= ' -s TabSize=1'

" Check for optional .chktexrc
let l:chktex_config = ale#path#FindNearestFile(a:buffer, '.chktexrc')
Expand Down
6 changes: 3 additions & 3 deletions test/linter/test_tex_chktex.vader
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ After:
Execute(The default command should be correct):
AssertLinter 'chktex',
\ ale#Escape('chktex')
\ . ' -v0 -p stdin -q -s TabSize=1'
\ . ' -v0 -p stdin -q'
\ . ' -I'

Execute(The executable should be configurable):
let g:ale_tex_chktex_executable = 'bin/foo'

AssertLinter 'bin/foo',
\ ale#Escape('bin/foo')
\ . ' -v0 -p stdin -q -s TabSize=1'
\ . ' -v0 -p stdin -q'
\ . ' -I'

Execute(The options should be configurable):
let b:ale_tex_chktex_options = '--something'

AssertLinter 'chktex',
\ ale#Escape('chktex')
\ . ' -v0 -p stdin -q -s TabSize=1'
\ . ' -v0 -p stdin -q'
\ . ' --something'

0 comments on commit 00dcf52

Please sign in to comment.