All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 Save g:ale_eruby_erblint_executable
3 Save g:ale_eruby_erblint_options
5 " Use an invalid global executable, so we don't match it.
6 let g:ale_eruby_erblint_executable = 'xxxinvalid'
7 let g:ale_eruby_erblint_options = ''
9 call ale#test#SetDirectory('/testplugin/test/fixers')
14 call ale#test#RestoreDirectory()
16 Execute(The erblint callback should return the correct default values):
17 call ale#test#SetFilename('../test-files/eruby/dummy.html.erb')
21 \ 'process_with': 'ale#fixers#erblint#PostProcess',
22 \ 'command': ale#Escape(g:ale_eruby_erblint_executable)
23 \ . ' --autocorrect --stdin %s',
25 \ ale#fixers#erblint#Fix(bufnr(''))
27 Execute(The erblint callback should include custom erblint options):
28 let g:ale_eruby_erblint_options = '--lint-all'
29 call ale#test#SetFilename('../test-files/ruby/with_config/dummy.rb')
33 \ 'process_with': 'ale#fixers#erblint#PostProcess',
34 \ 'command': ale#Escape(g:ale_eruby_erblint_executable)
36 \ . ' --autocorrect --stdin %s',
38 \ ale#fixers#erblint#Fix(bufnr(''))
40 Execute(The erblint post-processor should remove diagnostics content):
47 \ ale#fixers#erblint#PostProcess(bufnr(''), [
48 \ 'Linting 1 files with 11 autocorrectable linters...',
50 \ '1 error(s) corrected in ERB files',
51 \ '================ /home/user/demo.html.erb ==================',