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_xml_xmllint_executable
3 Save g:ale_xml_xmllint_indentsize
4 Save g:ale_xml_xmllint_options
6 let g:ale_xml_xmllint_executable = '/path/to/xmllint'
7 let g:ale_xml_xmllint_indentsize = ''
8 let g:ale_xml_xmllint_options = ''
10 call ale#test#SetDirectory('/testplugin/test/fixers')
15 Execute(The xmllint callback should return the correct default command with unpersisted buffer):
20 \ 'command': ale#Escape('/path/to/xmllint')
23 \ ale#fixers#xmllint#Fix(bufnr(''))
25 Execute(The xmllint callback should return the correct default command):
26 call ale#test#SetFilename('../test-files/xml/dummy.xml')
30 \ 'command': ale#Escape('/path/to/xmllint')
33 \ ale#fixers#xmllint#Fix(bufnr(''))
35 Execute(The xmllint callback should include the XMLLINT_INDENT variable):
36 call ale#test#SetFilename('../test-files/xml/dummy.xml')
37 let g:ale_xml_xmllint_indentsize = 2
41 \ 'command': ale#Env('XMLLINT_INDENT', ' ')
42 \ . ale#Escape('/path/to/xmllint')
45 \ ale#fixers#xmllint#Fix(bufnr(''))
47 Execute(The xmllint callback should include additional options):
48 call ale#test#SetFilename('../test-files/xml/dummy.xml')
49 let g:ale_xml_xmllint_options = '--nonet --custom-opt 2'
53 \ 'command': ale#Escape('/path/to/xmllint')
54 \ . ' --format --nonet --custom-opt 2 -'
56 \ ale#fixers#xmllint#Fix(bufnr(''))