Fix Pug linting
This commit is contained in:
parent
62a45f8ae4
commit
6f6c156995
@ -12,7 +12,7 @@ function! s:HandleUnixFormat(buffer, lines, type) abort
|
|||||||
" file.go:27: missing argument for Printf("%s"): format reads arg 2, have only 1 args
|
" file.go:27: missing argument for Printf("%s"): format reads arg 2, have only 1 args
|
||||||
" file.go:53:10: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)
|
" file.go:53:10: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)
|
||||||
" file.go:5:2: expected declaration, found 'STRING' "log"
|
" file.go:5:2: expected declaration, found 'STRING' "log"
|
||||||
let l:pattern = '^' . s:path_pattern . ':\(\d\+\):\?\(\d\+\)\?: \(.\+\)$'
|
let l:pattern = '^' . s:path_pattern . ':\(\d\+\):\?\(\d\+\)\?:\? \(.\+\)$'
|
||||||
let l:output = []
|
let l:output = []
|
||||||
|
|
||||||
for l:line in a:lines
|
for l:line in a:lines
|
||||||
|
@ -86,6 +86,7 @@ Execute (Run HandleUnixFormatAsError):
|
|||||||
let g:loclist = ale#handlers#HandleUnixFormatAsError(42, [
|
let g:loclist = ale#handlers#HandleUnixFormatAsError(42, [
|
||||||
\ 'file.go:27: missing argument for Printf("%s"): format reads arg 2, have only 1 args',
|
\ 'file.go:27: missing argument for Printf("%s"): format reads arg 2, have only 1 args',
|
||||||
\ 'file.go:53:10: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)',
|
\ 'file.go:53:10: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)',
|
||||||
|
\ 'test.pug:1:1 ".b" is not a valid class name. Class names must begin with "-", "_" or a letter and can only contain "_", "-", a-z and 0-9.',
|
||||||
\])
|
\])
|
||||||
|
|
||||||
Then (The loclist should be correct):
|
Then (The loclist should be correct):
|
||||||
@ -108,6 +109,15 @@ Then (The loclist should be correct):
|
|||||||
\ 'type': 'E',
|
\ 'type': 'E',
|
||||||
\ 'text': 'if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)',
|
\ 'text': 'if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)',
|
||||||
\ },
|
\ },
|
||||||
|
\ {
|
||||||
|
\ 'bufnr': 42,
|
||||||
|
\ 'vcol': 0,
|
||||||
|
\ 'nr': -1,
|
||||||
|
\ 'lnum': 1,
|
||||||
|
\ 'col': 1,
|
||||||
|
\ 'type': 'E',
|
||||||
|
\ 'text': '".b" is not a valid class name. Class names must begin with "-", "_" or a letter and can only contain "_", "-", a-z and 0-9.',
|
||||||
|
\ },
|
||||||
\], g:loclist
|
\], g:loclist
|
||||||
|
|
||||||
Execute (Run HandleUnixFormatAsWarning):
|
Execute (Run HandleUnixFormatAsWarning):
|
||||||
|
Loading…
Reference in New Issue
Block a user