mirror of
https://github.com/dense-analysis/ale.git
synced 2026-09-20 02:33:13 +08:00
Add a linter that runs the fatou language server (`fatou lsp`) for Julia diagnostics, and a fixer that formats Julia with `fatou format`.
21 lines
483 B
Plaintext
21 lines
483 B
Plaintext
Before:
|
|
call ale#assert#SetUpFixerTest('julia', 'fatou')
|
|
|
|
After:
|
|
call ale#assert#TearDownFixerTest()
|
|
|
|
Execute(The default command should be correct):
|
|
AssertFixer
|
|
\ {
|
|
\ 'command': ale#Escape('fatou') . ' format',
|
|
\ }
|
|
|
|
Execute(The executable and options should be configurable):
|
|
let g:ale_julia_fatou_executable = 'foobar'
|
|
let g:ale_julia_fatou_options = '--line-width 80'
|
|
|
|
AssertFixer
|
|
\ {
|
|
\ 'command': ale#Escape('foobar') . ' format --line-width 80',
|
|
\ }
|