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('php', 'phpcs')
7 call ale#assert#TearDownLinterTest()
9 Execute(The local phpcs executable should be used):
10 call ale#test#SetFilename('../test-files/phpcs/project-with-phpcs/foo/test.php')
12 let g:executable = ale#path#Simplify(g:dir . '/../test-files/phpcs/project-with-phpcs/vendor/bin/phpcs')
14 AssertLinterCwd '%s:h'
15 AssertLinter g:executable, ale#Escape(g:executable)
16 \ . ' -s --report=emacs --stdin-path=%s'
18 Execute(use_global should override local executable detection):
19 let g:ale_php_phpcs_use_global = 1
21 call ale#test#SetFilename('../test-files/phpcs/project-with-phpcs/foo/test.php')
23 AssertLinter 'phpcs', ale#Escape('phpcs')
24 \ . ' -s --report=emacs --stdin-path=%s'
26 Execute(Projects without local executables should use the global one):
27 call ale#test#SetFilename('../test-files/phpcs/project-without-phpcs/foo/test.php')
29 AssertLinter 'phpcs', ale#Escape('phpcs')
30 \ . ' -s --report=emacs --stdin-path=%s'
32 Execute(User provided options should be used):
33 let g:ale_php_phpcs_options = '--my-user-provided-option my-value'
35 AssertLinter 'phpcs', ale#Escape('phpcs')
36 \ . ' -s --report=emacs --stdin-path=%s --my-user-provided-option my-value'
38 Execute(The _standard option should be used):
39 let g:ale_php_phpcs_standard = 'foobar'
41 AssertLinter 'phpcs', ale#Escape('phpcs')
42 \ . ' -s --report=emacs --stdin-path=%s --standard=' . ale#Escape('foobar')