psalm.xml.dist 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0"?>
  2. <psalm
  3. totallyTyped="false"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xmlns="https://getpsalm.org/schema/config"
  6. xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
  7. >
  8. <projectFiles>
  9. <directory name="lib" />
  10. <ignoreFiles>
  11. <directory name="vendor" />
  12. <directory name="lib/Doctrine/Common/Collections/Expr"/>
  13. </ignoreFiles>
  14. </projectFiles>
  15. <issueHandlers>
  16. <LessSpecificReturnType errorLevel="info" />
  17. <!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
  18. <DeprecatedMethod errorLevel="info" />
  19. <DeprecatedProperty errorLevel="info" />
  20. <DeprecatedClass errorLevel="info" />
  21. <DeprecatedConstant errorLevel="info" />
  22. <DeprecatedInterface errorLevel="info" />
  23. <DeprecatedTrait errorLevel="info" />
  24. <InternalMethod errorLevel="info" />
  25. <InternalProperty errorLevel="info" />
  26. <InternalClass errorLevel="info" />
  27. <MissingClosureReturnType errorLevel="info" />
  28. <MissingReturnType errorLevel="info" />
  29. <MissingPropertyType errorLevel="info" />
  30. <InvalidDocblock errorLevel="info" />
  31. <PropertyNotSetInConstructor errorLevel="info" />
  32. <MissingConstructor errorLevel="info" />
  33. <MissingClosureParamType errorLevel="info" />
  34. <MissingParamType errorLevel="info" />
  35. <RedundantCondition errorLevel="info" />
  36. <DocblockTypeContradiction errorLevel="info" />
  37. <RedundantConditionGivenDocblockType errorLevel="info" />
  38. <UnresolvableInclude errorLevel="info" />
  39. <RawObjectIteration errorLevel="info" />
  40. <InvalidStringClass errorLevel="info" />
  41. <UnsafeGenericInstantiation>
  42. <errorLevel type="suppress">
  43. <file name="lib/Doctrine/Common/Collections/ArrayCollection.php"/>
  44. </errorLevel>
  45. </UnsafeGenericInstantiation>
  46. <UndefinedAttributeClass>
  47. <errorLevel type="suppress">
  48. <!-- This class is new in PHP 8.1 and Psalm does not know it yet. -->
  49. <referencedClass name="ReturnTypeWillChange"/>
  50. </errorLevel>
  51. </UndefinedAttributeClass>
  52. </issueHandlers>
  53. </psalm>