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 call ale#assert#SetUpLinterTest('html', 'djlint')
5 call ale#assert#TearDownLinterTest()
7 Execute(The default djlint command should be correct):
8 AssertLinter 'djlint', ale#Escape('djlint') . ' %s'
10 Execute(The executable should be configurable):
11 let g:ale_html_djlint_executable = 'foo bar'
12 let g:ale_html_djlint_options = '--option'
14 AssertLinter 'foo bar', ale#Escape('foo bar') . ' --option %s'
16 Execute(The --profile option should not be overridden):
17 call ale#test#SetFilename('../test-files/djlint/testfile.html')
19 set filetype=htmldjango
20 let g:ale_html_djlint_options = '--profile jinja'
22 AssertLinter 'djlint', ale#Escape(g:ale_html_djlint_executable)
23 \ . ' --profile jinja'
26 Execute(Should set --profile for htmlangular):
27 call ale#test#SetFilename('../test-files/djlint/testfile.html')
29 set filetype=htmlangular
31 AssertLinter 'djlint', ale#Escape(g:ale_html_djlint_executable)
32 \ . ' --profile angular'
35 Execute(Should set --profile for jinja):
36 call ale#test#SetFilename('../test-files/djlint/testfile.html')
40 AssertLinter 'djlint', ale#Escape(g:ale_html_djlint_executable)
41 \ . ' --profile jinja'
44 Execute(Should set --profile for Handlebars):
45 call ale#test#SetFilename('../test-files/djlint/testfile.html')
47 set filetype=handlebars
49 AssertLinter 'djlint', ale#Escape(g:ale_html_djlint_executable)
50 \ . ' --profile handlebars'
53 Execute(Should set --profile for nunjucks):
54 call ale#test#SetFilename('../test-files/djlint/testfile.html')
58 AssertLinter 'djlint', ale#Escape(g:ale_html_djlint_executable)
59 \ . ' --profile nunjucks'
62 Execute(Should set --profile for Go HTML Templates):
63 call ale#test#SetFilename('../test-files/djlint/testfile.html')
65 set filetype=gohtmltmpl
67 AssertLinter 'djlint', ale#Escape(g:ale_html_djlint_executable)
68 \ . ' --profile golang'