install.fairie/dotfiles/.vim/plugged/ale/test/handler/test_cmake_lint_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

30 lines
693 B
Text

Before:
runtime ale_linters/cmake/cmake_lint.vim
After:
Restore
call ale#linter#Reset()
Execute(The cmake_lint handler should handle basic warnings):
AssertEqual
\ [
\ {
\ 'lnum': 126,
\ 'col': 0,
\ 'type': 'W',
\ 'code': 'C0301',
\ 'text': 'Line too long (136/80)',
\ },
\ {
\ 'lnum': 139,
\ 'col': 4,
\ 'type': 'W',
\ 'code': 'C0113',
\ 'text': 'Missing COMMENT in statement which allows it',
\ },
\ ],
\ ale_linters#cmake#cmake_lint#Handle(1, [
\ 'CMakeLists.txt:126: [C0301] Line too long (136/80)',
\ 'CMakeLists.txt:139,04: [C0113] Missing COMMENT in statement which allows it',
\ ])