purs-tidy for PureScript (#3863)

* purs-tidy

* update email address for toastal
This commit is contained in:
toastal
2021-08-08 13:09:21 +00:00
committed by GitHub
parent a793db7399
commit 775d121d46
10 changed files with 85 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
Before:
Save g:ale_purescript_tidy_executable
Save g:ale_purescript_tidy_options
" Use an invalid global executable, so we dont match it.
let g:ale_purescript_tidy_executable = 'odd-purs-tidy'
let g:ale_purescript_tidy_options = '--indent 3'
call ale#assert#SetUpFixerTest('purescript', 'purs-tidy')
After:
call ale#assert#TearDownFixerTest()
Execute(The purs-tidy callback should return the correct custom options):
AssertFixer
\ {
\ 'command': ale#Escape('odd-purs-tidy')
\ . ' --indent 3'
\ . ' %s',
\ 'read_temporary_file': 0,
\ }