mirror of
https://github.com/dense-analysis/ale.git
synced 2026-07-29 11:16:46 +08:00
CI / Build (push) Canceled after 0s
CI / Neovim 0.10 Windows (push) Canceled after 0s
CI / Neovim 0.12 Windows (push) Canceled after 0s
CI / Vim 8.2 Windows (push) Canceled after 0s
CI / Vim 9.2 Windows (push) Canceled after 0s
CI / Lint (push) Canceled after 0s
CI / Lua (push) Canceled after 0s
CI / Neovim 0.10 Linux (push) Canceled after 0s
CI / Neovim 0.12 Linux (push) Canceled after 0s
CI / Vim 8.2 Linux (push) Canceled after 0s
CI / Vim 9.2 Linux (push) Canceled after 0s
* astgrep: support its LSP Fixes: #4974 * astgrep: add a fixer
19 lines
622 B
Plaintext
19 lines
622 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('haskell', 'astgrep')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default executable path should be correct):
|
|
AssertLinter 'ast-grep', ale#Escape('ast-grep') . ' lsp'
|
|
|
|
Execute(The project root should be detected correctly with a configuration file):
|
|
call ale#test#SetFilename('../test-files/generic/astgrep/subdir/file.hs')
|
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/generic/astgrep')
|
|
|
|
Execute(The project root should be empty when no project files can be detected):
|
|
call ale#test#SetFilename('../test-files/dummy')
|
|
|
|
AssertLSPProject ''
|