mirror of
https://github.com/dense-analysis/ale
synced 2024-12-25 23:52:22 +00:00
48fab99a0a
* Add support for `erlfmt` * Add missing entry to table of contents * Fix warnings * Add missing tools to supported tools
26 lines
583 B
Plaintext
26 lines
583 B
Plaintext
Before:
|
|
Save b:ale_elm_format_executable
|
|
Save b:ale_elm_format_options
|
|
|
|
let b:ale_elm_format_executable = 'erlfmt'
|
|
let b:ale_elm_format_options = ''
|
|
|
|
After:
|
|
Restore
|
|
|
|
Execute(The erlfmt command should handle empty options):
|
|
AssertEqual
|
|
\ {
|
|
\ 'command': ale#Escape('erlfmt') . ' %s'
|
|
\ },
|
|
\ ale#fixers#erlfmt#Fix(bufnr(''))
|
|
|
|
Execute(The erlfmt command should handle custom options):
|
|
let b:ale_erlang_erlfmt_options = '--insert-pragma'
|
|
|
|
AssertEqual
|
|
\ {
|
|
\ 'command': ale#Escape('erlfmt') . ' --insert-pragma %s'
|
|
\ },
|
|
\ ale#fixers#erlfmt#Fix(bufnr(''))
|