Merge pull request #2940 from davidsierradz/add-markdownlint-options

allow passing custom options to markdownlint
This commit is contained in:
w0rp
2020-08-17 10:21:36 +01:00
committed by GitHub
4 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
Before:
call ale#assert#SetUpLinterTest('markdown', 'markdownlint')
After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
AssertLinter 'markdownlint', ale#Escape('markdownlint') . ' %s'
Execute(The options should be configurable):
let g:ale_markdown_markdownlint_options = '--config ~/custom/.markdownlintrc'
AssertLinter 'markdownlint', ale#Escape('markdownlint') . ' --config ~/custom/.markdownlintrc %s'