#852 - Capture error codes for nimcheck

This commit is contained in:
w0rp
2017-11-19 00:38:00 +00:00
parent 3c8f3221df
commit c012563984
2 changed files with 29 additions and 20 deletions

View File

@@ -12,25 +12,27 @@ Execute(Parsing nim errors should work):
\ {
\ 'lnum': 8,
\ 'col': 8,
\ 'text': 'Warning: use {.base.} for base methods; baseless methods are deprecated [UseBase]',
\ 'text': 'use {.base.} for base methods; baseless methods are deprecated',
\ 'code': 'UseBase',
\ 'type': 'W',
\ },
\ {
\ 'lnum': 12,
\ 'col': 2,
\ 'text': 'Error: identifier expected, but found ''a.barfoo''',
\ 'text': 'identifier expected, but found ''a.barfoo''',
\ 'type': 'E',
\ },
\ {
\ 'lnum': 2,
\ 'col': 5,
\ 'text': 'Hint: ''NotUsed'' is declared but not used [XDeclaredButNotUsed]',
\ 'text': '''NotUsed'' is declared but not used',
\ 'code': 'XDeclaredButNotUsed',
\ 'type': 'W',
\ },
\ {
\ 'lnum': 12,
\ 'col': 2,
\ 'text': 'Error: with : character',
\ 'text': 'with : character',
\ 'type': 'E',
\ },
\ ],