e149692cc9
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: "???"
28 lines
829 B
Text
28 lines
829 B
Text
Before:
|
||
runtime ale_linters/bitbake/oelint_adv.vim
|
||
|
||
After:
|
||
Restore
|
||
|
||
call ale#linter#Reset()
|
||
|
||
Execute(The oelint_adv handler should handle warnings):
|
||
AssertEqual
|
||
\ [
|
||
\ {
|
||
\ 'lnum': 1234,
|
||
\ 'type': 'I',
|
||
\ 'code': 'oelint.var.suggestedvar.BUGTRACKER',
|
||
\ 'text': 'Variable ''BUGTRACKER'' should be set',
|
||
\ },
|
||
\ {
|
||
\ 'lnum': 17,
|
||
\ 'type': 'E',
|
||
\ 'code': 'oelint.var.mandatoryvar.DESCRIPTION',
|
||
\ 'text': 'Variable ''DESCRIPTION'' should be set',
|
||
\ },
|
||
\ ],
|
||
\ ale_linters#bitbake#oelint_adv#Handle(1, [
|
||
\ '/meta-x/recipes-y/example/example_1.0.bb:1234:info:oelint.var.suggestedvar.BUGTRACKER:Variable ''BUGTRACKER'' should be set',
|
||
\ '[31mexample2_1.1.bb:17:error:oelint.var.mandatoryvar.DESCRIPTION:Variable ''DESCRIPTION'' should be set[0m',
|
||
\ ])
|