mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-09 06:45:53 +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>
23 lines
707 B
Plaintext
23 lines
707 B
Plaintext
Before:
|
|
Save g:ale_linters
|
|
call ale#assert#SetUpLinterTest('markdown', 'markdownlint')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default markdownlint-cli command should be correct):
|
|
AssertLinter 'markdownlint', ale#Escape('markdownlint') . ' %s'
|
|
|
|
Execute(The executable should be configurable):
|
|
let g:ale_markdown_markdownlint_executable = 'foo bar'
|
|
let g:ale_markdown_markdownlint_options = '--option'
|
|
|
|
AssertLinter 'foo bar', ale#Escape('foo bar') . ' --option %s'
|
|
|
|
Execute(markdownlint should select the markdownlint-cli linter):
|
|
let g:ale_linters = {'markdown': ['markdownlint']}
|
|
|
|
AssertEqual
|
|
\ ['markdownlint_cli'],
|
|
\ map(ale#linter#Get('markdown'), 'v:val.name')
|