mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Allow to pass options to the buf linter and fix callback. (#4300)
* Allow to pass options to the buf linter * Fix the callback of buf linter
This commit is contained in:
@@ -11,7 +11,7 @@ Execute(The default command should be correct):
|
||||
\ . ' lint'
|
||||
\ . ' %s#include_package_files=true'
|
||||
|
||||
Execute(The callback should include any additional options):
|
||||
Execute(The callback should include any additional config):
|
||||
let b:ale_proto_buf_lint_executable = '/tmp/buf'
|
||||
let b:ale_proto_buf_lint_config = '/tmp/buf.yaml'
|
||||
|
||||
@@ -20,3 +20,13 @@ Execute(The callback should include any additional options):
|
||||
\ . ' lint'
|
||||
\ . ' --config=' . ale#Escape('/tmp/buf.yaml')
|
||||
\ . ' %s#include_package_files=true'
|
||||
|
||||
Execute(The callback should include additional options):
|
||||
let b:ale_proto_buf_lint_executable = '/tmp/buf'
|
||||
let b:ale_proto_buf_lint_options = '--disable-symlinks'
|
||||
|
||||
AssertLinter '/tmp/buf',
|
||||
\ ale#Escape('/tmp/buf')
|
||||
\ . ' lint'
|
||||
\ . ' --disable-symlinks'
|
||||
\ . ' %s#include_package_files=true'
|
||||
|
||||
Reference in New Issue
Block a user