test_buildifier_handler.vader
1 Before: 2 runtime ale_linters/bzl/buildifier.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(The buildifier handler should parse lines correctly): 8 AssertEqual 9 \ [ 10 \ { 11 \ 'lnum': 26, 12 \ 'col': 1, 13 \ 'type': 'E', 14 \ 'text': 'syntax error near'';'' and move the next statement to the new line', 15 \ }, 16 \ { 17 \ 'lnum': 7, 18 \ 'col': 0, 19 \ 'type': 'W', 20 \ 'text': 'unused-variable: Variable "foo" is unused. Please remove it. (https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#unused-variable)' 21 \ }, 22 \ ], 23 \ ale_linters#bzl#buildifier#Handle(bufnr(''), [ 24 \ 'swiftformat/toolchains/assets.bzl:26:1: syntax error near'';'' and move the next statement to the new line', 25 \ 'swiftformat/toolchains/assets.bzl:7: unused-variable: Variable "foo" is unused. Please remove it. (https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#unused-variable)', 26 \ ])