diff options
author | Isman Firmansyah <iromli@users.noreply.github.com> | 2022-05-29 20:23:47 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-29 22:23:47 +0900 |
commit | 876140832cd33e0566c5a30a755939e088925e66 (patch) | |
tree | 0eb48701e19b1c741ba19eb267f5afe6a38c408d /test/handler | |
parent | ae44f0560031d4e7c1c806247efb8797cb54dc0e (diff) | |
download | ale-876140832cd33e0566c5a30a755939e088925e66.zip |
Add support for actionlint options (#4216)
* Add support for actionlint options
* fix misaligned doc tags
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_actionlint_handler.vader | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/handler/test_actionlint_handler.vader b/test/handler/test_actionlint_handler.vader index 557cff02..3e762129 100644 --- a/test/handler/test_actionlint_handler.vader +++ b/test/handler/test_actionlint_handler.vader @@ -2,6 +2,7 @@ Before: runtime! ale/handlers/actionlint.vim After: + unlet! g:ale_yaml_actionlint_options call ale#linter#Reset() Execute(Problems should be parsed correctly for actionlint): @@ -26,3 +27,17 @@ Execute(Problems should be parsed correctly for actionlint): \ '.codecov.yaml:2:1: "jobs" section is missing in workflow [syntax-check]', \ 'workflow_call_event.yaml:56:23: property "unknown_input" is not defined in object type {input7: bool; input0: any; input1: any; input2: string; input3: any; input4: any; input5: number; input6: number} [expression]', \ ]) + +Execute(Command should always have --no-color and --oneline options): + let g:ale_yaml_actionlint_options = '' + + AssertEqual + \ '%e --no-color --oneline %t', + \ ale#handlers#actionlint#GetCommand(bufnr('')) + +Execute(Options should be added to command): + let g:ale_yaml_actionlint_options = '-shellcheck= -pyflakes=' + + AssertEqual + \ '%e -shellcheck= -pyflakes= --no-color --oneline %t', + \ ale#handlers#actionlint#GetCommand(bufnr('')) |