1
0

psalm.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?xml version="1.0"?>
  2. <!--
  3. - SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  4. - SPDX-License-Identifier: AGPL-3.0-or-later
  5. -->
  6. <psalm
  7. errorLevel="4"
  8. resolveFromConfigFile="true"
  9. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  10. xmlns="https://getpsalm.org/schema/config"
  11. xsi:schemaLocation="https://getpsalm.org/schema/config https://getpsalm.org/schema/config"
  12. errorBaseline="build/psalm-baseline.xml"
  13. findUnusedBaselineEntry="false"
  14. findUnusedCode="false"
  15. phpVersion="8.1"
  16. >
  17. <plugins>
  18. <plugin filename="build/psalm/AppFrameworkTainter.php" />
  19. <plugin filename="build/psalm/AttributeNamedParameters.php" />
  20. </plugins>
  21. <projectFiles>
  22. <directory name="apps/admin_audit"/>
  23. <directory name="apps/cloud_federation_api"/>
  24. <directory name="apps/comments"/>
  25. <directory name="apps/contactsinteraction"/>
  26. <directory name="apps/dashboard"/>
  27. <directory name="apps/dav"/>
  28. <directory name="apps/encryption"/>
  29. <directory name="apps/federatedfilesharing"/>
  30. <directory name="apps/federation"/>
  31. <directory name="apps/files"/>
  32. <directory name="apps/files_external"/>
  33. <directory name="apps/files_sharing"/>
  34. <directory name="apps/files_trashbin"/>
  35. <directory name="apps/files_versions"/>
  36. <directory name="apps/lookup_server_connector"/>
  37. <directory name="apps/oauth2"/>
  38. <directory name="apps/provisioning_api"/>
  39. <directory name="apps/settings"/>
  40. <directory name="apps/sharebymail"/>
  41. <directory name="apps/systemtags"/>
  42. <directory name="apps/testing"/>
  43. <directory name="apps/theming"/>
  44. <directory name="apps/twofactor_backupcodes"/>
  45. <directory name="apps/updatenotification"/>
  46. <directory name="apps/user_ldap"/>
  47. <directory name="apps/user_status"/>
  48. <directory name="apps/weather_status"/>
  49. <directory name="apps/webhook_listeners"/>
  50. <directory name="apps/workflowengine"/>
  51. <directory name="core"/>
  52. <directory name="lib"/>
  53. <directory name="ocs"/>
  54. <directory name="ocs-provider"/>
  55. <file name="cron.php"/>
  56. <file name="index.php"/>
  57. <file name="public.php"/>
  58. <file name="remote.php"/>
  59. <file name="status.php"/>
  60. <file name="version.php"/>
  61. <ignoreFiles>
  62. <directory name="apps/**/composer"/>
  63. <directory name="apps/**/tests"/>
  64. <directory name="apps/files_external/3rdparty"/>
  65. <directory name="lib/composer"/>
  66. <directory name="lib/l10n"/>
  67. </ignoreFiles>
  68. </projectFiles>
  69. <extraFiles>
  70. <directory name="3rdparty"/>
  71. <directory name="apps/files_external/3rdparty"/>
  72. </extraFiles>
  73. <stubs>
  74. <file name="build/stubs/apcu.php"/>
  75. <file name="build/stubs/gd.php"/>
  76. <file name="build/stubs/imagick.php"/>
  77. <file name="build/stubs/intl.php"/>
  78. <file name="build/stubs/IntlChar.php"/>
  79. <file name="build/stubs/SensitiveParameter.phpstub"/>
  80. <file name="build/stubs/ldap.php"/>
  81. <file name="build/stubs/memcached.php"/>
  82. <file name="build/stubs/redis.php"/>
  83. <file name="build/stubs/redis_cluster.php"/>
  84. <file name="build/stubs/sftp.php"/>
  85. <file name="build/stubs/ssh2.php"/>
  86. <file name="build/stubs/xsl.php"/>
  87. <file name="build/stubs/ftp.php"/>
  88. <file name="build/stubs/pcntl.php"/>
  89. <file name="build/stubs/zip.php"/>
  90. <file name="build/stubs/psr_container.php"/>
  91. <file name="3rdparty/sabre/uri/lib/functions.php" />
  92. <file name="build/stubs/app_api.php" />
  93. </stubs>
  94. <issueHandlers>
  95. <LessSpecificReturnStatement errorLevel="error"/>
  96. <LessSpecificReturnType errorLevel="error"/>
  97. <LessSpecificImplementedReturnType errorLevel="error"/>
  98. <MoreSpecificReturnType errorLevel="error"/>
  99. <UndefinedClass>
  100. <errorLevel type="suppress">
  101. <referencedClass name="OCA\Circles\CirclesManager"/>
  102. <referencedClass name="OCA\Circles\Exceptions\CircleNotFoundException"/>
  103. <referencedClass name="OCA\Circles\Model\Circle"/>
  104. <referencedClass name="OCA\Circles\Model\Member"/>
  105. <referencedClass name="OCA\GroupFolders\Mount\GroupFolderStorage"/>
  106. <referencedClass name="OCA\TwoFactorNextcloudNotification\Controller\APIController"/>
  107. <referencedClass name="OCA\GlobalSiteSelector\Service\SlaveService"/>
  108. </errorLevel>
  109. </UndefinedClass>
  110. <UndefinedFunction>
  111. <errorLevel type="suppress">
  112. <!-- template functions: https://github.com/nextcloud/server/blob/6e8e34fef920a073118c22111f0f31eb3b3a91dc/lib/private/legacy/template/functions.php -->
  113. <referencedFunction name="p"/>
  114. <referencedFunction name="emit_css_tag"/>
  115. <referencedFunction name="emit_css_loading_tags"/>
  116. <referencedFunction name="emit_script_tag"/>
  117. <referencedFunction name="emit_script_loading_tags"/>
  118. <referencedFunction name="print_unescaped"/>
  119. <referencedFunction name="script"/>
  120. <referencedFunction name="vendor_script"/>
  121. <referencedFunction name="style"/>
  122. <referencedFunction name="vendor_style"/>
  123. <referencedFunction name="translation"/>
  124. <referencedFunction name="component"/>
  125. <referencedFunction name="link_to"/>
  126. <referencedFunction name="link_to_docs"/>
  127. <referencedFunction name="image_path"/>
  128. <referencedFunction name="mimetype_icon"/>
  129. <referencedFunction name="preview_icon"/>
  130. <referencedFunction name="publicPreview_icon"/>
  131. <referencedFunction name="human_file_size"/>
  132. <referencedFunction name="strip_time"/>
  133. <referencedFunction name="relative_modified_date"/>
  134. <referencedFunction name="html_select_options"/>
  135. </errorLevel>
  136. </UndefinedFunction>
  137. <UndefinedGlobalVariable>
  138. <errorLevel type="suppress">
  139. <referencedVariable name="$_"/>
  140. <referencedVariable name="$l"/>
  141. <referencedVariable name="$theme"/>
  142. <!-- false positive: https://github.com/nextcloud/server/blob/cb057829f72c70e819f456edfadbb29d72dba832/lib/private/Console/Application.php#L92 -->
  143. <file name="core/register_command.php" />
  144. </errorLevel>
  145. </UndefinedGlobalVariable>
  146. <UndefinedDocblockClass>
  147. <errorLevel type="suppress">
  148. <!-- Helper classes for sharing API integration from other apps -->
  149. <referencedClass name="OCA\Deck\Sharing\ShareAPIHelper" />
  150. <referencedClass name="OCA\Talk\Share\Helper\DeletedShareAPIController" />
  151. <referencedClass name="OCA\GlobalSiteSelector\Service\SlaveService"/>
  152. </errorLevel>
  153. </UndefinedDocblockClass>
  154. <AmbiguousConstantInheritance>
  155. <errorLevel type="suppress">
  156. <!-- false positive: https://github.com/vimeo/psalm/issues/7818 -->
  157. <referencedConstant name="OC\Memcache\Redis::DEFAULT_TTL" />
  158. <referencedConstant name="OC\Memcache\LoggerWrapperCache::DEFAULT_TTL" />
  159. </errorLevel>
  160. </AmbiguousConstantInheritance>
  161. </issueHandlers>
  162. </psalm>