diff options
author | Barnabás Ágoston <agostonbarna@users.noreply.github.com> | 2022-03-20 14:52:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-20 13:52:22 +0000 |
commit | 5c7019f394588bdc29d7573f5063198c2803dfe4 (patch) | |
tree | 34ba90590da7975f283917a072b442f0a0de5737 /test/linter | |
parent | c42fee3da52eda8d63946918fdc1060d8c0b0b62 (diff) | |
download | ale-5c7019f394588bdc29d7573f5063198c2803dfe4.zip |
Make it possible to override awk --lint option (#4114)
Currently, it's not possible to override the awk `--lint` option with
```viml
let g:ale_awk_gawk_options = '--lint=no-ext'
```
although this could be useful for those who only use gawk and don't want to get these lint errors:
> FEATURE X is a gawk extension
The idea is to move the default `--lint` option before the `awk_gawk_options` in the gawk.vim code to give the custom `--lint=...` option a higher precedence.
Co-authored-by: Barnabás Ágoston <barna@agoston.dev>
Diffstat (limited to 'test/linter')
-rw-r--r-- | test/linter/test_gawk.vader | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/linter/test_gawk.vader b/test/linter/test_gawk.vader index ba9f59ab..f4364291 100644 --- a/test/linter/test_gawk.vader +++ b/test/linter/test_gawk.vader @@ -7,19 +7,19 @@ After: Execute(The default command should be correct): AssertLinter 'gawk', \ ale#Escape('gawk') . ' --source ' . ale#Escape('BEGIN { exit } END { exit 1 }') - \ . ' -f %t --lint /dev/null' + \ . ' --lint -f %t /dev/null' Execute(The executable should be configurable): let b:ale_awk_gawk_executable = '/other/gawk' AssertLinter '/other/gawk', \ ale#Escape('/other/gawk') . ' --source ' . ale#Escape('BEGIN { exit } END { exit 1 }') - \ . ' -f %t --lint /dev/null' + \ . ' --lint -f %t /dev/null' Execute(The options should be configurable): let b:ale_awk_gawk_executable = 'gawk' - let b:ale_awk_gawk_options = '--something' + let b:ale_awk_gawk_options = '--lint=no-ext' AssertLinter 'gawk', \ ale#Escape('gawk') . ' --source ' . ale#Escape('BEGIN { exit } END { exit 1 }') - \ . ' --something -f %t --lint /dev/null' + \ . ' --lint --lint=no-ext -f %t /dev/null' |