diff options
author | René Gieling <github@dartcafe.de> | 2020-12-05 22:44:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-05 22:44:00 +0300 |
commit | bf0081da09828db80da3b716ca274e3313241aa4 (patch) | |
tree | 1d4e6a0d69b39826b9b737144a9734a8101c99d0 /psalm.xml | |
parent | b353a90b1b4fc4c065c1c376caf5e166c917b087 (diff) |
Psalm (#1277)
* added config for psalm
* removed, fixed and additions annotations
* added typehints
Diffstat (limited to 'psalm.xml')
-rw-r--r-- | psalm.xml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/psalm.xml b/psalm.xml new file mode 100644 index 00000000..939994e8 --- /dev/null +++ b/psalm.xml @@ -0,0 +1,39 @@ +<?xml version="1.0"?> +<psalm + errorLevel="4" + resolveFromConfigFile="true" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns="https://getpsalm.org/schema/config" + xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" +> + <projectFiles> + <directory name="lib" /> + <ignoreFiles> + <directory name="vendor" /> + </ignoreFiles> + </projectFiles> + <extraFiles> + <directory name="vendor" /> + <ignoreFiles> + <directory name="vendor/phpunit/php-code-coverage" /> + <directory name="vendor/vimeo" /> + </ignoreFiles> + </extraFiles> + <issueHandlers> + <UndefinedClass> + <errorLevel type="suppress"> + <referencedClass name="OC" /> + <referencedClass name="OC\Security\CSP\ContentSecurityPolicyNonceManager" /> + </errorLevel> + </UndefinedClass> + <UndefinedDocblockClass> + <errorLevel type="suppress"> + <referencedClass name="Doctrine\DBAL\Schema\Schema" /> + <referencedClass name="Doctrine\DBAL\Schema\SchemaException" /> + <referencedClass name="Doctrine\DBAL\Driver\Statement" /> + <referencedClass name="Doctrine\DBAL\Schema\Table" /> + <referencedClass name="OC\Security\CSP\ContentSecurityPolicyNonceManager" /> + </errorLevel> + </UndefinedDocblockClass> + </issueHandlers> +</psalm> |