mirror of
https://github.com/dense-analysis/ale
synced 2024-12-27 00:22:28 +00:00
607f33a1b0
* Add buf lint to linters * Add buf format to fixers * Fix test/linter/test_buf_lint.vader * Fix test/fixers/test_buf_format_fixer_callback.vader * Simplify test/test-files/proto/testfile.proto * Add buf-lint alias and rename linter
23 lines
620 B
Plaintext
23 lines
620 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('proto', 'buf_lint')
|
|
call ale#test#SetFilename('test.proto')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default command should be correct):
|
|
AssertLinter 'buf',
|
|
\ ale#Escape('buf')
|
|
\ . ' lint'
|
|
\ . ' %s#include_package_files=true'
|
|
|
|
Execute(The callback should include any additional options):
|
|
let b:ale_proto_buf_lint_executable = '/tmp/buf'
|
|
let b:ale_proto_buf_lint_config = '/tmp/buf.yaml'
|
|
|
|
AssertLinter '/tmp/buf',
|
|
\ ale#Escape('/tmp/buf')
|
|
\ . ' lint'
|
|
\ . ' --config=' . ale#Escape('/tmp/buf.yaml')
|
|
\ . ' %s#include_package_files=true'
|