psalm.xml 4.5 KB

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