mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-16 01:07:06 +08:00
Add phan as a linter for php files (#1026)
Add phan for checking PHP code
This commit is contained in:
@@ -34,6 +34,21 @@ g:ale_php_langserver_use_global *g:ale_php_langserver_use_global*
|
||||
See: |ale-integrations-local-executables|
|
||||
|
||||
|
||||
===============================================================================
|
||||
phan *ale-php-phan*
|
||||
|
||||
WARNING: please do not use this linter if you have an configuration file
|
||||
for your project because the phan will look into your entirely project and
|
||||
ale will display in the current buffer warnings that may belong to other file.
|
||||
|
||||
g:ale_php_phan_minimum_severity *g:ale_php_phan_minimum_severity*
|
||||
*b:ale_php_phan_minimum_severity*
|
||||
Type: |Number|
|
||||
Default: `0`
|
||||
|
||||
This variable defines the minimum severity level
|
||||
|
||||
|
||||
===============================================================================
|
||||
phpcbf *ale-php-phpcbf*
|
||||
|
||||
|
||||
@@ -115,6 +115,7 @@ CONTENTS *ale-contents*
|
||||
php...................................|ale-php-options|
|
||||
hack................................|ale-php-hack|
|
||||
langserver..........................|ale-php-langserver|
|
||||
phan................................|ale-php-phan|
|
||||
phpcbf..............................|ale-php-phpcbf|
|
||||
phpcs...............................|ale-php-phpcs|
|
||||
phpmd...............................|ale-php-phpmd|
|
||||
@@ -273,7 +274,7 @@ Notes:
|
||||
* Objective-C++: `clang`
|
||||
* OCaml: `merlin` (see |ale-ocaml-merlin|)
|
||||
* Perl: `perl -c`, `perl-critic`
|
||||
* PHP: `hack`, `langserver`, `php -l`, `phpcs`, `phpmd`, `phpstan`, `phpcbf`
|
||||
* PHP: `hack`, `langserver`, `phan`, `php -l`, `phpcs`, `phpmd`, `phpstan`, `phpcbf`
|
||||
* Pod: `proselint`
|
||||
* Pug: `pug-lint`
|
||||
* Puppet: `puppet`, `puppet-lint`
|
||||
|
||||
Reference in New Issue
Block a user