Add support for fatou (#5159)

Add a linter that runs the fatou language server (`fatou lsp`) for Julia
diagnostics, and a fixer that formats Julia with `fatou format`.
This commit is contained in:
Johan Larsson
2026-08-19 10:46:57 +09:00
committed by GitHub
parent 5c8ca023e6
commit 42d1062011
11 changed files with 117 additions and 0 deletions
@@ -0,0 +1,20 @@
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',
\ }
+23
View File
@@ -0,0 +1,23 @@
Before:
call ale#assert#SetUpLinterTest('julia', 'fatou')
After:
call ale#assert#TearDownLinterTest()
Execute(The default executable path should be correct):
AssertLinter 'fatou', ale#Escape('fatou') . ' lsp'
Execute(The executable should be configurable):
let g:ale_julia_fatou_executable = '/path/to/fatou'
AssertLinter '/path/to/fatou', ale#Escape('/path/to/fatou') . ' lsp'
Execute(The project root should be detected correctly with a configuration file):
call ale#test#SetFilename('../test-files/fatou/subdir/file.jl')
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/fatou')
Execute(The project root should be empty when no project files can be detected):
call ale#test#SetFilename('../test-files/dummy')
AssertLSPProject ''
View File