psalm.xml 5.8 KB

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