summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Benjamin <petermbenjamin@gmail.com>2023-09-05 06:33:41 -0700
committerGitHub <noreply@github.com>2023-09-05 14:33:41 +0100
commit3bedafc29a45d478f41d8467a988e29c35618737 (patch)
tree36d0cead8c4b78063cbed5a41538ea9d3855944a /test
parent115ad17ace047cab20ccc67f79c943aaf3f0f291 (diff)
downloadale-3bedafc29a45d478f41d8467a988e29c35618737.zip
fix(yaml): make actionlint respect config (#4584)
* fix(yaml): make actionlint respect config * docs: update actionlint docs * chore: update author & add description * test: move actionlint test to test/linter/
Diffstat (limited to 'test')
-rw-r--r--test/linter/test_yaml_actionlint.vader (renamed from test/handler/test_actionlint_handler.vader)12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/handler/test_actionlint_handler.vader b/test/linter/test_yaml_actionlint.vader
index 3e762129..82ab2f6d 100644
--- a/test/handler/test_actionlint_handler.vader
+++ b/test/linter/test_yaml_actionlint.vader
@@ -23,21 +23,21 @@ Execute(Problems should be parsed correctly for actionlint):
\ 'code': 'expression',
\ },
\ ],
- \ ale#handlers#actionlint#Handle(bufnr(''), [
+ \ ale_linters#yaml#actionlint#Handle(bufnr(''), [
\ '.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):
+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(''))
+ \ '%e -no-color -oneline',
+ \ ale_linters#yaml#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(''))
+ \ '%e -shellcheck= -pyflakes= -no-color -oneline',
+ \ ale_linters#yaml#actionlint#GetCommand(bufnr(''))