mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-03 01:53:30 +08:00
Added NASM linter
Added NASM linter (for nasm filetype).
This commit is contained in:
30
test/handler/test_nasm_handler.vader
Normal file
30
test/handler/test_nasm_handler.vader
Normal file
@@ -0,0 +1,30 @@
|
||||
Before:
|
||||
runtime ale_linters/nasm/nasm.vim
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(The nasm handler should parse GCC style output from nasm correctly):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 2,
|
||||
\ 'text': "label alone on a line without a colon might be in error",
|
||||
\ 'type': 'W',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 4,
|
||||
\ 'text': "invalid combination of opcode and operands",
|
||||
\ 'type': 'E',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 7,
|
||||
\ 'text': "unable to open include file `bar.asm'",
|
||||
\ 'type': 'E',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#nasm#nasm#Handle(357, [
|
||||
\ "tmp.asm:2: warning: label alone on a line without a colon might be in error",
|
||||
\ "tmp.asm:4: error: invalid combination of opcode and operands",
|
||||
\ "tmp.asm:7: fatal: unable to open include file `bar.asm'"
|
||||
\ ])
|
||||
Reference in New Issue
Block a user