summaryrefslogtreecommitdiff
path: root/phpstan.neon
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-21 23:19:58 +0300
committerAndrew Dolgov <[email protected]>2021-02-21 23:19:58 +0300
commit6f29ecbbb96440552f434f5f487b96753bdb02df (patch)
treeafdd1adcb1ce5aed6a0e887c4b45892e1702deec /phpstan.neon
parentf6bfb89b2912933f638416135dff7bb8cb28890d (diff)
add phpstan config
Diffstat (limited to 'phpstan.neon')
-rw-r--r--phpstan.neon17
1 files changed, 17 insertions, 0 deletions
diff --git a/phpstan.neon b/phpstan.neon
new file mode 100644
index 000000000..0703e0d15
--- /dev/null
+++ b/phpstan.neon
@@ -0,0 +1,17 @@
+parameters:
+ level: 5
+ ignoreErrors:
+ - '#Constant.*not found#'
+ - '#Call to an undefined method DOMNode::getAttribute\(\).#'
+ - '#PHPDoc tag @param has invalid value#'
+ - message: '##'
+ paths:
+ - lib/*
+ - vendor/*
+ - plugins/*/vendor/*
+ - plugins.local/*/vendor/*
+
+ excludePaths:
+ - node_modules/*
+ paths:
+ - . \ No newline at end of file