1
0

psalm.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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"
  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. </plugins>
  20. <projectFiles>
  21. <directory name="apps/admin_audit"/>
  22. <directory name="apps/cloud_federation_api"/>
  23. <directory name="apps/comments"/>
  24. <directory name="apps/contactsinteraction"/>
  25. <directory name="apps/dashboard"/>
  26. <directory name="apps/dav"/>
  27. <directory name="apps/encryption"/>
  28. <directory name="apps/federatedfilesharing"/>
  29. <directory name="apps/federation"/>
  30. <directory name="apps/files"/>
  31. <directory name="apps/files_external"/>
  32. <directory name="apps/files_sharing"/>
  33. <directory name="apps/files_trashbin"/>
  34. <directory name="apps/files_versions"/>
  35. <directory name="apps/lookup_server_connector"/>
  36. <directory name="apps/oauth2"/>
  37. <directory name="apps/provisioning_api"/>
  38. <directory name="apps/settings"/>
  39. <directory name="apps/sharebymail"/>
  40. <directory name="apps/systemtags"/>
  41. <directory name="apps/testing"/>
  42. <directory name="apps/theming"/>
  43. <directory name="apps/twofactor_backupcodes"/>
  44. <directory name="apps/updatenotification"/>
  45. <directory name="apps/user_ldap"/>
  46. <directory name="apps/user_status"/>
  47. <directory name="apps/weather_status"/>
  48. <directory name="apps/workflowengine"/>
  49. <directory name="core"/>
  50. <directory name="lib"/>
  51. <directory name="ocs"/>
  52. <directory name="ocs-provider"/>
  53. <file name="cron.php"/>
  54. <file name="index.php"/>
  55. <file name="public.php"/>
  56. <file name="remote.php"/>
  57. <file name="status.php"/>
  58. <file name="version.php"/>
  59. <ignoreFiles>
  60. <directory name="apps/**/composer"/>
  61. <directory name="apps/**/tests"/>
  62. <directory name="apps/files_external/3rdparty"/>
  63. <directory name="lib/composer"/>
  64. <directory name="lib/l10n"/>
  65. </ignoreFiles>
  66. </projectFiles>
  67. <extraFiles>
  68. <directory name="3rdparty"/>
  69. <directory name="apps/files_external/3rdparty"/>
  70. </extraFiles>
  71. <stubs>
  72. <file name="build/stubs/apcu.php"/>
  73. <file name="build/stubs/gd.php"/>
  74. <file name="build/stubs/imagick.php"/>
  75. <file name="build/stubs/intl.php"/>
  76. <file name="build/stubs/IntlChar.php"/>
  77. <file name="build/stubs/SensitiveParameter.phpstub"/>
  78. <file name="build/stubs/ldap.php"/>
  79. <file name="build/stubs/memcached.php"/>
  80. <file name="build/stubs/redis.php"/>
  81. <file name="build/stubs/redis_cluster.php"/>
  82. <file name="build/stubs/sftp.php"/>
  83. <file name="build/stubs/ssh2.php"/>
  84. <file name="build/stubs/xsl.php"/>
  85. <file name="build/stubs/ftp.php"/>
  86. <file name="build/stubs/pcntl.php"/>
  87. <file name="build/stubs/zip.php"/>
  88. <file name="build/stubs/psr_container.php"/>
  89. <file name="3rdparty/sabre/uri/lib/functions.php" />
  90. <file name="build/stubs/app_api.php" />
  91. </stubs>
  92. <issueHandlers>
  93. <LessSpecificReturnStatement errorLevel="error"/>
  94. <LessSpecificReturnType errorLevel="error"/>
  95. <LessSpecificImplementedReturnType errorLevel="error"/>
  96. <MoreSpecificReturnType errorLevel="error"/>
  97. <UndefinedClass>
  98. <errorLevel type="suppress">
  99. <referencedClass name="OCA\Circles\CirclesManager"/>
  100. <referencedClass name="OCA\Circles\Exceptions\CircleNotFoundException"/>
  101. <referencedClass name="OCA\Circles\Model\Circle"/>
  102. <referencedClass name="OCA\Circles\Model\Member"/>
  103. <referencedClass name="OCA\GroupFolders\Mount\GroupFolderStorage"/>
  104. <referencedClass name="OCA\TwoFactorNextcloudNotification\Controller\APIController"/>
  105. <referencedClass name="OCA\GlobalSiteSelector\Service\SlaveService"/>
  106. </errorLevel>
  107. </UndefinedClass>
  108. <UndefinedFunction>
  109. <errorLevel type="suppress">
  110. <!-- template functions: https://github.com/nextcloud/server/blob/6e8e34fef920a073118c22111f0f31eb3b3a91dc/lib/private/legacy/template/functions.php -->
  111. <referencedFunction name="p"/>
  112. <referencedFunction name="emit_css_tag"/>
  113. <referencedFunction name="emit_css_loading_tags"/>
  114. <referencedFunction name="emit_script_tag"/>
  115. <referencedFunction name="emit_script_loading_tags"/>
  116. <referencedFunction name="print_unescaped"/>
  117. <referencedFunction name="script"/>
  118. <referencedFunction name="vendor_script"/>
  119. <referencedFunction name="style"/>
  120. <referencedFunction name="vendor_style"/>
  121. <referencedFunction name="translation"/>
  122. <referencedFunction name="component"/>
  123. <referencedFunction name="link_to"/>
  124. <referencedFunction name="link_to_docs"/>
  125. <referencedFunction name="image_path"/>
  126. <referencedFunction name="mimetype_icon"/>
  127. <referencedFunction name="preview_icon"/>
  128. <referencedFunction name="publicPreview_icon"/>
  129. <referencedFunction name="human_file_size"/>
  130. <referencedFunction name="strip_time"/>
  131. <referencedFunction name="relative_modified_date"/>
  132. <referencedFunction name="html_select_options"/>
  133. </errorLevel>
  134. </UndefinedFunction>
  135. <UndefinedGlobalVariable>
  136. <errorLevel type="suppress">
  137. <referencedVariable name="$_"/>
  138. <referencedVariable name="$l"/>
  139. <referencedVariable name="$theme"/>
  140. <!-- false positive: https://github.com/nextcloud/server/blob/cb057829f72c70e819f456edfadbb29d72dba832/lib/private/Console/Application.php#L92 -->
  141. <file name="core/register_command.php" />
  142. </errorLevel>
  143. </UndefinedGlobalVariable>
  144. <UndefinedDocblockClass>
  145. <errorLevel type="suppress">
  146. <!-- Helper classes for sharing API integration from other apps -->
  147. <referencedClass name="OCA\Deck\Sharing\ShareAPIHelper" />
  148. <referencedClass name="OCA\Talk\Share\Helper\DeletedShareAPIController" />
  149. <referencedClass name="OCA\GlobalSiteSelector\Service\SlaveService"/>
  150. </errorLevel>
  151. </UndefinedDocblockClass>
  152. </issueHandlers>
  153. </psalm>