mirror of
https://github.com/dense-analysis/ale
synced 2025-01-25 01:02:50 +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
22 lines
545 B
Plaintext
22 lines
545 B
Plaintext
Before:
|
|
Save g:ale_proto_buf_format_executable
|
|
|
|
" Use an invalid global executable, so we don't match it.
|
|
let g:ale_proto_buf_format_executable = 'xxxinvalid'
|
|
|
|
call ale#test#SetDirectory('/testplugin/test/fixers')
|
|
|
|
After:
|
|
Restore
|
|
|
|
call ale#test#RestoreDirectory()
|
|
|
|
Execute(The buf-format callback should return the correct default values):
|
|
call ale#test#SetFilename('../test-files/proto/testfile.proto')
|
|
|
|
AssertEqual
|
|
\ {
|
|
\ 'command': ale#Escape('xxxinvalid') . ' format %t',
|
|
\ },
|
|
\ ale#fixers#buf_format#Fix(bufnr(''))
|