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('pug', 'puglint')
5 call ale#assert#TearDownLinterTest()
7 Execute(puglint should detect local executables and package.json):
8 call ale#test#SetFilename('../test-files/puglint/test.pug')
11 \ ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint'),
12 \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint'))
13 \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/package.json'))
16 Execute(puglint should use global executables if configured):
17 let g:ale_pug_puglint_use_global = 1
19 call ale#test#SetFilename('../test-files/puglint/test.pug')
21 AssertLinter 'pug-lint',
22 \ ale#Escape('pug-lint')
23 \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/package.json'))
26 Execute(puglint should detect .pug-lintrc):
27 call ale#test#SetFilename('../test-files/puglint/puglint_rc_dir/subdir/test.pug')
29 AssertLinter ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint'),
30 \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint'))
31 \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/puglint_rc_dir/.pug-lintrc'))
34 Execute(puglint should detect .pug-lintrc.js):
35 call ale#test#SetFilename('../test-files/puglint/puglint_rc_js_dir/subdir/test.pug')
37 AssertLinter ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint'),
38 \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint'))
39 \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/puglint_rc_js_dir/.pug-lintrc.js'))
42 Execute(puglint should detect .pug-lintrc.json):
43 call ale#test#SetFilename('../test-files/puglint/puglint_rc_json_dir/subdir/test.pug')
45 AssertLinter ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint'),
46 \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/node_modules/.bin/pug-lint'))
47 \ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/puglint/puglint_rc_json_dir/.pug-lintrc.json'))