summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_lua_handler.vader14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/handler/test_lua_handler.vader b/test/handler/test_lua_handler.vader
index 035dac24..7cebb017 100644
--- a/test/handler/test_lua_handler.vader
+++ b/test/handler/test_lua_handler.vader
@@ -1,6 +1,8 @@
Before:
Save g:ale_warn_about_trailing_whitespace
+ let g:ale_warn_about_trailing_whitespace = 1
+
runtime ale_linters/lua/luacheck.vim
After:
@@ -13,19 +15,22 @@ Execute(The luacheck handler should parse lines correctly):
\ {
\ 'lnum': 1,
\ 'col': 8,
- \ 'text': 'W612: line contains trailing whitespace',
+ \ 'text': 'line contains trailing whitespace',
+ \ 'code': 'W612',
\ 'type': 'W',
\ },
\ {
\ 'lnum': 3,
\ 'col': 5,
- \ 'text': 'W213: unused loop variable ''k''',
+ \ 'text': 'unused loop variable ''k''',
+ \ 'code': 'W213',
\ 'type': 'W',
\ },
\ {
\ 'lnum': 3,
\ 'col': 19,
- \ 'text': 'W113: accessing undefined variable ''x''',
+ \ 'text': 'accessing undefined variable ''x''',
+ \ 'code': 'W113',
\ 'type': 'W',
\ },
\ ],
@@ -43,7 +48,8 @@ Execute(The luacheck handler should respect the warn_about_trailing_whitespace o
\ {
\ 'lnum': 5,
\ 'col': 43,
- \ 'text': 'W212: unused argument ''g''',
+ \ 'text': 'unused argument ''g''',
+ \ 'code': 'W212',
\ 'type': 'W',
\ }
\ ],