install.fairie/dotfiles/.vim/plugged/ale/test/handler/test_luac_handler.vader
Git E2E Dev Test Username e149692cc9 git subrepo clone https://github.com/dense-analysis/ale.git ./dotfiles/.vim/plugged/ale
subrepo:
  subdir:   "dotfiles/.vim/plugged/ale"
  merged:   "e4b205440"
upstream:
  origin:   "https://github.com/dense-analysis/ale.git"
  branch:   "master"
  commit:   "e4b205440"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:09 -04:00

36 lines
828 B
Text

Before:
Save g:ale_warn_about_trailing_whitespace
let g:ale_warn_about_trailing_whitespace = 1
runtime ale_linters/lua/luac.vim
After:
Restore
call ale#linter#Reset()
Execute(The luac handler should parse lines correctly):
AssertEqual
\ [
\ {
\ 'lnum': 1,
\ 'text': 'line contains trailing whitespace',
\ 'type': 'E',
\ },
\ {
\ 'lnum': 3,
\ 'text': 'unexpected symbol near ''-''',
\ 'type': 'E',
\ },
\ {
\ 'lnum': 5,
\ 'text': '''='' expected near '')''',
\ 'type': 'E',
\ },
\ ],
\ ale_linters#lua#luac#Handle(347, [
\ 'luac /file/path/here.lua:1: line contains trailing whitespace',
\ 'luac /file/path/here.lua:3: unexpected symbol near ''-''',
\ 'luac /file/path/here.lua:5: ''='' expected near '')''',
\ ])