Adding Roc language linters and fixers. (#4966)

* `roc_language_server`

* `roc format`

* `roc format annotate`
This commit is contained in:
Benjamin Block
2025-05-05 02:01:45 -04:00
committed by GitHub
parent 1aaeb2cdae
commit f9de268816
12 changed files with 230 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
Before:
call ale#assert#SetUpFixerTest('roc', 'roc_annotate')
After:
call ale#assert#TearDownFixerTest()
Execute(The roc annotate callback should return the correct default values):
AssertFixer {
\ 'command': 'roc format annotate %t',
\ 'read_temporary_file': 1,
\}
Execute(The roc annotate callback should allow a custom executable):
let g:ale_roc_roc_annotate_executable = 'foo/bar'
AssertFixer {
\ 'command': 'foo/bar format annotate %t',
\ 'read_temporary_file': 1,
\}

View File

@@ -0,0 +1,20 @@
Before:
call ale#assert#SetUpFixerTest('roc', 'roc_format')
After:
call ale#assert#TearDownFixerTest()
Execute(The roc format callback should return the correct default values):
AssertFixer {
\ 'command': 'roc format %t',
\ 'read_temporary_file': 1,
\}
Execute(The roc format callback should allow a custom executable):
let g:ale_roc_roc_format_executable = 'foo/bar'
AssertFixer {
\ 'command': 'foo/bar format %t',
\ 'read_temporary_file': 1,
\}