mirror of
https://github.com/dense-analysis/ale.git
synced 2026-09-19 10:13:12 +08:00
* fix(tests): fix ale_c_build_dir_names being unset in tests (#5109) - Use ale#Set() to set the ale_c_build_dir_names variable. - Ensure SetUpLinterTest() is called before any Save commands in tests. - Add c.vim to runtime before non-linter tests are executed. - Remove workarounds in c.vim. * feat: Load Prettier from cjs also * fix: wrong command for markdownlint * feat: explicit support for markdownlint-cli2 - Add markdownlint-cli2 linter and fixer, separate from markdownilnt-cli - Rename markdownlint to markdownlint-cli - Keep markdownlint as alias for markdownlint-cli --------- Co-authored-by: w0rp <devw0rp@gmail.com> Co-authored-by: Horacio Sanson <horacio.sanson@dena.jp>
25 lines
769 B
Plaintext
25 lines
769 B
Plaintext
Before:
|
|
Save g:ale_linters
|
|
call ale#assert#SetUpLinterTest('markdown', 'markdownlint_cli2')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default markdownlint-cli2 command should be correct):
|
|
AssertLinter
|
|
\ 'markdownlint-cli2',
|
|
\ ale#Escape('markdownlint-cli2') . ' %s'
|
|
|
|
Execute(The executable and options should be configurable):
|
|
let g:ale_markdown_markdownlint_cli2_executable = 'foo bar'
|
|
let g:ale_markdown_markdownlint_cli2_options = '--no-globs'
|
|
|
|
AssertLinter 'foo bar', ale#Escape('foo bar') . ' --no-globs %s'
|
|
|
|
Execute(markdownlint-cli2 should select the markdownlint-cli2 linter):
|
|
let g:ale_linters = {'markdown': ['markdownlint-cli2']}
|
|
|
|
AssertEqual
|
|
\ ['markdownlint_cli2'],
|
|
\ map(ale#linter#Get('markdown'), 'v:val.name')
|