2022-05-03 01:03:05 +00:00
|
|
|
Before:
|
2024-01-14 11:51:39 +00:00
|
|
|
call ale#assert#SetUpLinterTest('yaml', 'actionlint')
|
2024-06-02 18:07:06 +00:00
|
|
|
call ale#test#SetFilename('/.github/file.yml')
|
2022-05-03 01:03:05 +00:00
|
|
|
|
|
|
|
After:
|
2024-01-14 11:51:39 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2022-05-03 01:03:05 +00:00
|
|
|
|
2024-02-06 01:23:26 +00:00
|
|
|
Execute(Command should always have -no-color, -oneline and - options):
|
2022-05-29 13:23:47 +00:00
|
|
|
let g:ale_yaml_actionlint_options = ''
|
|
|
|
|
2024-06-02 18:07:06 +00:00
|
|
|
AssertLinter 'actionlint', ale#Escape('actionlint') . ' -no-color -oneline - '
|
2022-05-29 13:23:47 +00:00
|
|
|
|
|
|
|
Execute(Options should be added to command):
|
|
|
|
let g:ale_yaml_actionlint_options = '-shellcheck= -pyflakes='
|
|
|
|
|
2024-06-02 18:07:06 +00:00
|
|
|
AssertLinter 'actionlint',
|
|
|
|
\ ale#Escape('actionlint') . ' -shellcheck= -pyflakes= -no-color -oneline - '
|
|
|
|
|
|
|
|
Execute(actionlint not run on files outside of /.github/ paths):
|
|
|
|
call ale#test#SetFilename('/something-else/file.yml')
|