mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-25 02:57:20 +08:00
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/
This commit is contained in:
@@ -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(''))
|
||||
Reference in New Issue
Block a user