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

28 lines
805 B
Text

Before:
runtime ale_linters/thrift/thriftcheck.vim
After:
call ale#linter#Reset()
Execute(The thriftcheck handler should handle basic warnings and errors):
AssertEqual
\ [
\ {
\ 'lnum': 1,
\ 'col': 1,
\ 'type': 'E',
\ 'text': '"py" namespace must match "^idl\\."',
\ 'code': 'namespace.pattern',
\ },
\ {
\ 'lnum': 3,
\ 'col': 5,
\ 'type': 'W',
\ 'text': '64-bit integer constant -2147483649 may not work in all languages',
\ 'code': 'int.64bit',
\ },
\ ],
\ ale_linters#thrift#thriftcheck#Handle(1, [
\ 'file.thrift:1:1: error: "py" namespace must match "^idl\\." (namespace.pattern)',
\ 'file.thrift:3:5: warning: 64-bit integer constant -2147483649 may not work in all languages (int.64bit)',
\ ])