summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorArdis <ArdisDreelath@users.noreply.github.com>2017-07-16 16:04:25 +0200
committerw0rp <w0rp@users.noreply.github.com>2017-07-16 15:04:25 +0100
commit7d174b00561f2cb6a6ad71b839b1b6fc6bd88e3b (patch)
tree069b3c013b53a0e99c673765e78e5b3a30b0ed95 /doc
parent4fa66ab627039fe19cf6383b19d311066b73d8cf (diff)
downloadale-7d174b00561f2cb6a6ad71b839b1b6fc6bd88e3b.zip
Added phpstan linter for php. (#772)
* Added phpstan linter for php.
Diffstat (limited to 'doc')
-rw-r--r--doc/ale-php.txt19
-rw-r--r--doc/ale.txt3
2 files changed, 21 insertions, 1 deletions
diff --git a/doc/ale-php.txt b/doc/ale-php.txt
index 51902ca1..4109673a 100644
--- a/doc/ale-php.txt
+++ b/doc/ale-php.txt
@@ -43,5 +43,24 @@ g:ale_php_phpmd_ruleset *g:ale_php_phpmd_ruleset*
the available phpmd rulesets
+------------------------------------------------------------------------------
+phpstan *ale-php-stan*
+
+g:ale_php_phpstan_executable *g:ale_php_phpstan_executable*
+ *b:ale_php_phpstan_executable*
+ Type: |String|
+ Default: `'phpstan'`
+
+ This variable sets executable used for phpstan.
+
+
+g:ale_php_phpstan_level *g:ale_php_phpstan_level*
+ *b:ale_php_phpstan_level*
+ Type: |Number|
+ Default: `4`
+
+ This variable controls the rule levels. 0 is the loosest and 4 is the
+ strictest.
+
===============================================================================
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
diff --git a/doc/ale.txt b/doc/ale.txt
index 642d3883..883525f9 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -74,6 +74,7 @@ CONTENTS *ale-contents*
php...................................|ale-php-options|
phpcs...............................|ale-php-phpcs|
phpmd...............................|ale-php-phpmd|
+ phpstan.............................|ale-php-phpstan|
pug...................................|ale-pug-options|
puglint.............................|ale-pug-puglint|
python................................|ale-python-options|
@@ -195,7 +196,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'
+* PHP: 'hack', 'php' (-l flag), 'phpcs', 'phpmd', 'phpstan'
* Pod: 'proselint'
* Pug: 'pug-lint'
* Puppet: 'puppet', 'puppet-lint'