mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-20 19:21:18 +08:00
Document the PHP langserver integration
This commit is contained in:
@@ -2,6 +2,38 @@
|
||||
ALE PHP Integration *ale-php-options*
|
||||
|
||||
|
||||
===============================================================================
|
||||
hack *ale-php-hack*
|
||||
|
||||
There are no options for this linter.
|
||||
|
||||
|
||||
===============================================================================
|
||||
langserver *ale-php-langserver*
|
||||
|
||||
g:php_langserver_executable *g:php_langserver_executable*
|
||||
*b:php_langserver_executable*
|
||||
Type: |String|
|
||||
Default: `'php-language-server.php'`
|
||||
|
||||
The variable can be set to configure the executable that will be used for
|
||||
running the PHP language server. `vendor` directory executables will be
|
||||
preferred instead of this setting if |g:php_langserver_use_global| is `0`.
|
||||
|
||||
See: |ale-integrations-local-executables|
|
||||
|
||||
|
||||
g:php_langserver_use_global *g:php_langserver_use_global*
|
||||
*b:php_langserver_use_global*
|
||||
Type: |Number|
|
||||
Default: `0`
|
||||
|
||||
This variable can be set to `1` to force the language server to be run with
|
||||
the executable set for |g:php_langserver_executable|.
|
||||
|
||||
See: |ale-integrations-local-executables|
|
||||
|
||||
|
||||
===============================================================================
|
||||
phpcs *ale-php-phpcs*
|
||||
|
||||
|
||||
@@ -75,6 +75,8 @@ CONTENTS *ale-contents*
|
||||
perl................................|ale-perl-perl|
|
||||
perlcritic..........................|ale-perl-perlcritic|
|
||||
php...................................|ale-php-options|
|
||||
hack................................|ale-php-hack|
|
||||
langserver..........................|ale-php-langserver|
|
||||
phpcs...............................|ale-php-phpcs|
|
||||
phpmd...............................|ale-php-phpmd|
|
||||
phpstan.............................|ale-php-phpstan|
|
||||
@@ -204,7 +206,7 @@ The following languages and tools are supported.
|
||||
* Objective-C++: 'clang'
|
||||
* OCaml: 'merlin' (see |ale-linter-integration-ocaml-merlin|)
|
||||
* Perl: 'perl' (-c flag), 'perlcritic'
|
||||
* PHP: 'hack', 'php' (-l flag), 'phpcs', 'phpmd', 'phpstan'
|
||||
* PHP: 'hack', 'langserver', 'php' (-l flag), 'phpcs', 'phpmd', 'phpstan'
|
||||
* Pod: 'proselint'
|
||||
* Pug: 'pug-lint'
|
||||
* Puppet: 'puppet', 'puppet-lint'
|
||||
|
||||
Reference in New Issue
Block a user