summaryrefslogtreecommitdiffstats
path: root/phpstan.neon
diff options
context:
space:
mode:
Diffstat (limited to 'phpstan.neon')
-rw-r--r--phpstan.neon40
1 files changed, 40 insertions, 0 deletions
diff --git a/phpstan.neon b/phpstan.neon
new file mode 100644
index 0000000..c02492f
--- /dev/null
+++ b/phpstan.neon
@@ -0,0 +1,40 @@
+includes:
+ - phpstan-baseline.neon
+
+parameters:
+ level: 2
+
+ checkFunctionNameCase: true
+ checkInternalClassCaseSensitivity: true
+ treatPhpDocTypesAsCertain: false
+
+ paths:
+ - application
+ - library/Director
+
+ ignoreErrors:
+ -
+ messages:
+ - '#Unsafe usage of new static\(\)#'
+ - '#. but return statement is missing#'
+ reportUnmatched: false
+
+ scanDirectories:
+ - /icingaweb2
+ - /usr/share/icinga-php
+ - /usr/share/icingaweb2-modules
+
+ excludePaths:
+ - library/Director/CoreBeta
+ - test
+ - library/Director/Test
+
+ universalObjectCratesClasses:
+ - Icinga\Module\Director\Data\Db\DbObject
+ - Icinga\Data\ConfigObject
+ - Icinga\Web\View
+ - Icinga\Module\Monitoring\Object\MonitoredObject
+ - Icinga\Module\Monitoring\DataView\DataView
+ - Icinga\Web\Session\SessionNamespace
+ - Icinga\User\Preferences
+ - ipl\Orm\Model