psalm.xml 5.8 KB

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