1
0

psalm.xml 5.1 KB

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