2016-07-26 00:37:44 +02:00
|
|
|
<?xml version="1.0"?>
|
2018-12-20 02:01:27 +01:00
|
|
|
<psalm
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xmlns="https://getpsalm.org/schema/config"
|
|
|
|
name="Psalm for Psalm"
|
|
|
|
useDocblockTypes="true"
|
2020-02-18 04:43:13 +01:00
|
|
|
errorLevel="1"
|
2018-12-20 02:01:27 +01:00
|
|
|
strictBinaryOperands="false"
|
|
|
|
rememberPropertyAssignmentsAfterCall="true"
|
|
|
|
checkForThrowsDocblock="false"
|
|
|
|
throwExceptionOnError="0"
|
2019-03-05 21:45:09 +01:00
|
|
|
findUnusedCode="true"
|
2019-10-01 21:44:43 +02:00
|
|
|
ensureArrayStringOffsetsExist="true"
|
2019-10-21 13:15:46 +02:00
|
|
|
ensureArrayIntOffsetsExist="false"
|
2019-07-06 18:21:39 +02:00
|
|
|
resolveFromConfigFile="true"
|
2018-12-20 02:01:27 +01:00
|
|
|
xsi:schemaLocation="https://getpsalm.org/schema/config config.xsd"
|
2020-11-27 23:20:34 +01:00
|
|
|
limitMethodComplexity="true"
|
2018-12-20 02:01:27 +01:00
|
|
|
>
|
2016-12-29 14:42:39 +01:00
|
|
|
<projectFiles>
|
2018-11-14 19:19:38 +01:00
|
|
|
<directory name="src"/>
|
|
|
|
<directory name="tests"/>
|
|
|
|
<directory name="examples"/>
|
2017-01-08 01:41:48 +01:00
|
|
|
<ignoreFiles>
|
2020-03-15 04:54:42 +01:00
|
|
|
<file name="src/Psalm/Internal/PhpTraverser/CustomTraverser.php"/>
|
2018-11-14 19:19:38 +01:00
|
|
|
<file name="tests/ErrorBaselineTest.php"/>
|
2019-05-10 00:23:14 +02:00
|
|
|
<file name="vendor/symfony/console/Command/Command.php"/>
|
2019-12-08 22:52:48 +01:00
|
|
|
<file name="src/spl_object_id.php"/>
|
2019-05-10 00:23:14 +02:00
|
|
|
<directory name="tests/fixtures"/>
|
|
|
|
<file name="vendor/felixfbecker/advanced-json-rpc/lib/Dispatcher.php" />
|
|
|
|
<directory name="vendor/netresearch/jsonmapper" />
|
2019-04-27 23:57:15 +02:00
|
|
|
<directory name="vendor/phpunit" />
|
2017-01-08 01:41:48 +01:00
|
|
|
</ignoreFiles>
|
2016-12-29 14:42:39 +01:00
|
|
|
</projectFiles>
|
|
|
|
|
2018-06-22 07:26:10 +02:00
|
|
|
<ignoreExceptions>
|
2018-11-14 19:19:38 +01:00
|
|
|
<class name="UnexpectedValueException"/>
|
|
|
|
<class name="InvalidArgumentException"/>
|
|
|
|
<class name="LogicException"/>
|
2018-06-22 07:26:10 +02:00
|
|
|
</ignoreExceptions>
|
|
|
|
|
2019-01-12 16:52:23 +01:00
|
|
|
<plugins>
|
2019-02-23 22:22:39 +01:00
|
|
|
<plugin filename="examples/plugins/FunctionCasingChecker.php"/>
|
2019-03-02 00:01:28 +01:00
|
|
|
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
|
|
|
|
</plugins>
|
2019-01-12 16:52:23 +01:00
|
|
|
|
2016-12-30 02:07:42 +01:00
|
|
|
<issueHandlers>
|
2018-11-14 19:19:38 +01:00
|
|
|
<PossiblyNullOperand errorLevel="suppress"/>
|
2019-11-25 21:20:31 +01:00
|
|
|
|
|
|
|
<DeprecatedMethod>
|
2018-05-03 17:38:27 +02:00
|
|
|
<errorLevel type="suppress">
|
2019-11-25 21:20:31 +01:00
|
|
|
<directory name="tests" />
|
2019-10-04 17:23:35 +02:00
|
|
|
</errorLevel>
|
|
|
|
</DeprecatedMethod>
|
2020-07-20 10:53:16 +02:00
|
|
|
<DeprecatedClass>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<referencedClass name="PackageVersions\Versions"/>
|
|
|
|
</errorLevel>
|
|
|
|
</DeprecatedClass>
|
2019-10-04 17:23:35 +02:00
|
|
|
|
2017-12-29 23:27:16 +01:00
|
|
|
<UnusedParam>
|
2017-02-12 01:30:06 +01:00
|
|
|
<errorLevel type="suppress">
|
2018-11-14 19:19:38 +01:00
|
|
|
<directory name="examples"/>
|
2017-02-12 01:30:06 +01:00
|
|
|
</errorLevel>
|
2017-12-29 23:27:16 +01:00
|
|
|
</UnusedParam>
|
|
|
|
|
|
|
|
<PossiblyUnusedParam>
|
|
|
|
<errorLevel type="suppress">
|
2018-11-14 19:19:38 +01:00
|
|
|
<directory name="examples"/>
|
2017-12-29 23:27:16 +01:00
|
|
|
</errorLevel>
|
|
|
|
</PossiblyUnusedParam>
|
2017-02-12 01:30:06 +01:00
|
|
|
|
2017-12-16 16:51:04 +01:00
|
|
|
<UnusedClass>
|
|
|
|
<errorLevel type="suppress">
|
2018-11-14 19:19:38 +01:00
|
|
|
<directory name="examples"/>
|
2019-05-30 21:15:12 +02:00
|
|
|
<directory name="src/Psalm/Internal/Fork" />
|
2019-03-31 20:02:30 +02:00
|
|
|
<file name="src/Psalm/Plugin/Shepherd.php" />
|
2019-02-23 22:22:39 +01:00
|
|
|
<file name="src/Psalm/Plugin/Hook/MethodReturnTypeProviderInterface.php"/>
|
2017-12-16 16:51:04 +01:00
|
|
|
</errorLevel>
|
|
|
|
</UnusedClass>
|
|
|
|
|
2020-04-01 04:32:48 +02:00
|
|
|
<MissingConstructor>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<directory name="tests"/>
|
|
|
|
</errorLevel>
|
|
|
|
</MissingConstructor>
|
|
|
|
|
2020-10-28 18:48:13 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset errorLevel="suppress">
|
|
|
|
<errorLevel type="error">
|
|
|
|
<directory name="src/Psalm/Internal/Provider/ReturnTypeProvider"/>
|
|
|
|
</errorLevel>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
|
|
|
2018-11-14 19:19:38 +01:00
|
|
|
<MissingThrowsDocblock errorLevel="info"/>
|
2018-06-22 07:26:10 +02:00
|
|
|
|
2017-02-27 05:47:15 +01:00
|
|
|
<PossiblyUnusedMethod>
|
2019-04-13 00:28:07 +02:00
|
|
|
<errorLevel type="info">
|
|
|
|
<file name="src/Psalm/Internal/Provider/FileReferenceProvider.php" />
|
|
|
|
</errorLevel>
|
2017-02-27 05:47:15 +01:00
|
|
|
<errorLevel type="suppress">
|
2018-11-14 19:19:38 +01:00
|
|
|
<directory name="src/Psalm/Plugin"/>
|
2019-03-23 17:47:46 +01:00
|
|
|
<directory name="src/Psalm/SourceControl/Git/"/>
|
2018-11-14 19:19:38 +01:00
|
|
|
<file name="src/Psalm/Internal/LanguageServer/Client/TextDocument.php"/>
|
|
|
|
<file name="src/Psalm/Internal/LanguageServer/Server/TextDocument.php"/>
|
|
|
|
<referencedMethod name="Psalm\Codebase::getParentInterfaces"/>
|
|
|
|
<referencedMethod name="Psalm\Codebase::getMethodParams"/>
|
|
|
|
<referencedMethod name="Psalm\Codebase::getMethodReturnType"/>
|
|
|
|
<referencedMethod name="Psalm\Codebase::getMethodReturnTypeLocation"/>
|
|
|
|
<referencedMethod name="Psalm\Codebase::getDeclaringMethodId"/>
|
|
|
|
<referencedMethod name="Psalm\Codebase::getAppearingMethodId"/>
|
|
|
|
<referencedMethod name="Psalm\Codebase::getOverriddenMethodIds"/>
|
|
|
|
<referencedMethod name="Psalm\Codebase::getCasedMethodId"/>
|
2019-01-10 22:59:44 +01:00
|
|
|
<referencedMethod name="Psalm\Codebase::createClassLikeStorage"/>
|
2018-11-14 19:19:38 +01:00
|
|
|
<referencedMethod name="Psalm\Codebase::isVariadic"/>
|
|
|
|
<referencedMethod name="Psalm\Codebase::getMethodReturnsByRef"/>
|
2018-02-04 00:52:35 +01:00
|
|
|
</errorLevel>
|
2017-02-27 05:47:15 +01:00
|
|
|
</PossiblyUnusedMethod>
|
|
|
|
|
2018-12-02 00:37:49 +01:00
|
|
|
<InternalMethod>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<directory name="tests"/>
|
|
|
|
</errorLevel>
|
|
|
|
</InternalMethod>
|
2019-09-18 20:21:06 +02:00
|
|
|
|
2019-11-11 16:11:42 +01:00
|
|
|
<PossiblyUndefinedStringArrayOffset>
|
2019-09-18 20:21:06 +02:00
|
|
|
<errorLevel type="suppress">
|
2019-10-01 21:44:43 +02:00
|
|
|
<directory name="src/Psalm/Internal/Provider/ReturnTypeProvider" />
|
|
|
|
<file name="src/Psalm/Internal/Type/AssertionReconciler.php" />
|
|
|
|
<file name="src/Psalm/Internal/Type/NegatedAssertionReconciler.php" />
|
2020-04-17 15:28:42 +02:00
|
|
|
<file name="src/Psalm/Internal/Type/SimpleAssertionReconciler.php" />
|
|
|
|
<file name="src/Psalm/Internal/Type/SimpleNegatedAssertionReconciler.php" />
|
2019-09-18 20:21:06 +02:00
|
|
|
<directory name="tests"/>
|
|
|
|
</errorLevel>
|
2019-11-11 16:11:42 +01:00
|
|
|
</PossiblyUndefinedStringArrayOffset>
|
2016-12-30 02:07:42 +01:00
|
|
|
</issueHandlers>
|
2018-12-08 19:18:55 +01:00
|
|
|
</psalm>
|