2016-07-25 18:37:44 -04:00
|
|
|
<?xml version="1.0"?>
|
2018-12-19 20:01:27 -05:00
|
|
|
<psalm
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xmlns="https://getpsalm.org/schema/config"
|
|
|
|
name="Psalm for Psalm"
|
2020-02-17 22:43:13 -05:00
|
|
|
errorLevel="1"
|
2018-12-19 20:01:27 -05:00
|
|
|
throwExceptionOnError="0"
|
2019-03-05 15:45:09 -05:00
|
|
|
findUnusedCode="true"
|
2019-10-01 15:44:43 -04:00
|
|
|
ensureArrayStringOffsetsExist="true"
|
2021-03-22 23:26:03 -04:00
|
|
|
ensureArrayIntOffsetsExist="true"
|
2018-12-19 20:01:27 -05:00
|
|
|
xsi:schemaLocation="https://getpsalm.org/schema/config config.xsd"
|
2020-11-27 17:20:34 -05:00
|
|
|
limitMethodComplexity="true"
|
2021-03-23 01:30:51 -04:00
|
|
|
errorBaseline="psalm-baseline.xml"
|
2021-12-11 13:21:45 -06:00
|
|
|
findUnusedPsalmSuppress="true"
|
2018-12-19 20:01:27 -05:00
|
|
|
>
|
2021-10-09 23:37:04 +02:00
|
|
|
<stubs>
|
|
|
|
<file name="stubs/phpparser.phpstub"/>
|
|
|
|
</stubs>
|
2016-12-29 08:42:39 -05:00
|
|
|
<projectFiles>
|
2018-11-14 13:19:38 -05:00
|
|
|
<directory name="src"/>
|
|
|
|
<directory name="tests"/>
|
|
|
|
<directory name="examples"/>
|
2022-01-03 12:04:35 +02:00
|
|
|
<file name="psalm"/>
|
|
|
|
<file name="psalm-language-server"/>
|
|
|
|
<file name="psalm-plugin"/>
|
|
|
|
<file name="psalm-refactor"/>
|
|
|
|
<file name="psalter"/>
|
2017-01-07 19:41:48 -05:00
|
|
|
<ignoreFiles>
|
2020-03-14 23:54:42 -04:00
|
|
|
<file name="src/Psalm/Internal/PhpTraverser/CustomTraverser.php"/>
|
2018-11-14 13:19:38 -05:00
|
|
|
<file name="tests/ErrorBaselineTest.php"/>
|
2022-11-30 00:28:00 -05:00
|
|
|
<file name="tests/Internal/CallMapTest.php"/>
|
2019-05-09 18:23:14 -04:00
|
|
|
<file name="vendor/symfony/console/Command/Command.php"/>
|
|
|
|
<directory name="tests/fixtures"/>
|
|
|
|
<file name="vendor/felixfbecker/advanced-json-rpc/lib/Dispatcher.php" />
|
|
|
|
<directory name="vendor/netresearch/jsonmapper" />
|
2019-04-27 17:57:15 -04:00
|
|
|
<directory name="vendor/phpunit" />
|
2022-11-25 03:33:10 -04:00
|
|
|
<directory name="vendor/mockery/mockery"/>
|
2022-09-13 13:13:06 -04:00
|
|
|
<file name="vendor/nikic/php-parser/lib/PhpParser/Node/UnionType.php" />
|
2017-01-07 19:41:48 -05:00
|
|
|
</ignoreFiles>
|
2016-12-29 08:42:39 -05:00
|
|
|
</projectFiles>
|
|
|
|
|
2018-06-22 01:26:10 -04:00
|
|
|
<ignoreExceptions>
|
2018-11-14 13:19:38 -05:00
|
|
|
<class name="UnexpectedValueException"/>
|
|
|
|
<class name="InvalidArgumentException"/>
|
|
|
|
<class name="LogicException"/>
|
2018-06-22 01:26:10 -04:00
|
|
|
</ignoreExceptions>
|
|
|
|
|
2019-01-12 10:52:23 -05:00
|
|
|
<plugins>
|
2019-02-23 23:22:39 +02:00
|
|
|
<plugin filename="examples/plugins/FunctionCasingChecker.php"/>
|
2019-03-02 01:01:28 +02:00
|
|
|
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
|
2022-01-03 08:42:51 +02:00
|
|
|
<plugin filename="examples/plugins/InternalChecker.php"/>
|
2022-11-24 21:20:21 -04:00
|
|
|
<pluginClass class="Psalm\MockeryPlugin\Plugin"/>
|
2019-03-02 01:01:28 +02:00
|
|
|
</plugins>
|
2019-01-12 10:52:23 -05:00
|
|
|
|
2016-12-29 20:07:42 -05:00
|
|
|
<issueHandlers>
|
2018-11-14 13:19:38 -05:00
|
|
|
<PossiblyNullOperand errorLevel="suppress"/>
|
2019-11-25 15:20:31 -05:00
|
|
|
|
|
|
|
<DeprecatedMethod>
|
2018-05-03 11:38:27 -04:00
|
|
|
<errorLevel type="suppress">
|
2019-11-25 15:20:31 -05:00
|
|
|
<directory name="tests" />
|
2019-10-04 11:23:35 -04:00
|
|
|
</errorLevel>
|
|
|
|
</DeprecatedMethod>
|
2021-06-07 17:46:56 +03:00
|
|
|
|
2020-07-20 11:53:16 +03:00
|
|
|
<DeprecatedClass>
|
|
|
|
<errorLevel type="suppress">
|
2022-01-08 22:26:24 +02:00
|
|
|
<referencedClass name="PackageVersions\Versions"/>
|
2020-07-20 11:53:16 +03:00
|
|
|
</errorLevel>
|
|
|
|
</DeprecatedClass>
|
2019-10-04 11:23:35 -04:00
|
|
|
|
2017-12-29 17:27:16 -05:00
|
|
|
<UnusedParam>
|
2017-02-11 19:30:06 -05:00
|
|
|
<errorLevel type="suppress">
|
2018-11-14 13:19:38 -05:00
|
|
|
<directory name="examples"/>
|
2017-02-11 19:30:06 -05:00
|
|
|
</errorLevel>
|
2017-12-29 17:27:16 -05:00
|
|
|
</UnusedParam>
|
|
|
|
|
|
|
|
<PossiblyUnusedParam>
|
|
|
|
<errorLevel type="suppress">
|
2018-11-14 13:19:38 -05:00
|
|
|
<directory name="examples"/>
|
2017-12-29 17:27:16 -05:00
|
|
|
</errorLevel>
|
|
|
|
</PossiblyUnusedParam>
|
2017-02-11 19:30:06 -05:00
|
|
|
|
2017-12-16 10:51:04 -05:00
|
|
|
<UnusedClass>
|
|
|
|
<errorLevel type="suppress">
|
2018-11-14 13:19:38 -05:00
|
|
|
<directory name="examples"/>
|
2019-05-30 15:15:12 -04:00
|
|
|
<directory name="src/Psalm/Internal/Fork" />
|
2021-02-15 22:18:41 +01:00
|
|
|
<directory name="src/Psalm/Node" />
|
2019-03-31 14:02:30 -04:00
|
|
|
<file name="src/Psalm/Plugin/Shepherd.php" />
|
2017-12-16 10:51:04 -05:00
|
|
|
</errorLevel>
|
|
|
|
</UnusedClass>
|
|
|
|
|
2020-03-31 22:32:48 -04:00
|
|
|
<MissingConstructor>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<directory name="tests"/>
|
|
|
|
</errorLevel>
|
|
|
|
</MissingConstructor>
|
|
|
|
|
2021-03-23 01:30:51 -04:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<directory name="src/Psalm/Internal/ExecutionEnvironment" />
|
|
|
|
<directory name="tests"/>
|
2020-10-28 13:48:13 -04:00
|
|
|
</errorLevel>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
|
|
|
2022-01-20 17:33:06 -05:00
|
|
|
<ImpureMethodCall>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<directory name="src/Psalm/Storage/Assertion"/>
|
|
|
|
</errorLevel>
|
|
|
|
</ImpureMethodCall>
|
|
|
|
|
2018-11-14 13:19:38 -05:00
|
|
|
<MissingThrowsDocblock errorLevel="info"/>
|
2018-06-22 01:26:10 -04:00
|
|
|
|
2021-05-21 09:25:57 -04:00
|
|
|
<PossiblyUnusedProperty>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<file name="src/Psalm/Report.php"/>
|
|
|
|
</errorLevel>
|
|
|
|
</PossiblyUnusedProperty>
|
|
|
|
|
2017-02-26 23:47:15 -05:00
|
|
|
<PossiblyUnusedMethod>
|
|
|
|
<errorLevel type="suppress">
|
2018-11-14 13:19:38 -05:00
|
|
|
<directory name="src/Psalm/Plugin"/>
|
2019-03-23 12:47:46 -04:00
|
|
|
<directory name="src/Psalm/SourceControl/Git/"/>
|
2018-11-14 13:19:38 -05: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 16:59:44 -05:00
|
|
|
<referencedMethod name="Psalm\Codebase::createClassLikeStorage"/>
|
2018-11-14 13:19:38 -05:00
|
|
|
<referencedMethod name="Psalm\Codebase::isVariadic"/>
|
|
|
|
<referencedMethod name="Psalm\Codebase::getMethodReturnsByRef"/>
|
2018-02-03 18:52:35 -05:00
|
|
|
</errorLevel>
|
2017-02-26 23:47:15 -05:00
|
|
|
</PossiblyUnusedMethod>
|
|
|
|
|
2018-12-01 18:37:49 -05:00
|
|
|
<InternalMethod>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<directory name="tests"/>
|
|
|
|
</errorLevel>
|
|
|
|
</InternalMethod>
|
2019-09-18 14:21:06 -04:00
|
|
|
|
2019-11-11 10:11:42 -05:00
|
|
|
<PossiblyUndefinedStringArrayOffset>
|
2019-09-18 14:21:06 -04:00
|
|
|
<errorLevel type="suppress">
|
2019-10-01 15:44:43 -04: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 09:28:42 -04:00
|
|
|
<file name="src/Psalm/Internal/Type/SimpleAssertionReconciler.php" />
|
|
|
|
<file name="src/Psalm/Internal/Type/SimpleNegatedAssertionReconciler.php" />
|
2019-09-18 14:21:06 -04:00
|
|
|
<directory name="tests"/>
|
|
|
|
</errorLevel>
|
2019-11-11 10:11:42 -05:00
|
|
|
</PossiblyUndefinedStringArrayOffset>
|
2021-02-15 22:18:41 +01:00
|
|
|
|
|
|
|
<MixedPropertyTypeCoercion>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<directory name="vendor/nikic/php-parser" />
|
|
|
|
</errorLevel>
|
|
|
|
</MixedPropertyTypeCoercion>
|
|
|
|
|
|
|
|
<PropertyTypeCoercion>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<directory name="vendor/nikic/php-parser" />
|
|
|
|
</errorLevel>
|
|
|
|
</PropertyTypeCoercion>
|
|
|
|
|
|
|
|
<MixedAssignment>
|
|
|
|
<errorLevel type="suppress">
|
|
|
|
<directory name="vendor/nikic/php-parser" />
|
|
|
|
</errorLevel>
|
|
|
|
</MixedAssignment>
|
2016-12-29 20:07:42 -05:00
|
|
|
</issueHandlers>
|
2018-12-08 13:18:55 -05:00
|
|
|
</psalm>
|