psalm.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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"/>
  15. <directory name="core"/>
  16. <directory name="lib"/>
  17. <directory name="ocm-provider"/>
  18. <directory name="ocs"/>
  19. <directory name="ocs-provider"/>
  20. <file name="index.php"/>
  21. <file name="public.php"/>
  22. <file name="remote.php"/>
  23. <file name="status.php"/>
  24. <file name="version.php"/>
  25. <ignoreFiles>
  26. <directory name="apps/**/composer"/>
  27. <directory name="apps/**/tests"/>
  28. <directory name="apps/files_external/3rdparty"/>
  29. <directory name="lib/composer"/>
  30. <directory name="lib/l10n"/>
  31. </ignoreFiles>
  32. </projectFiles>
  33. <extraFiles>
  34. <directory name="3rdparty"/>
  35. <directory name="apps/files_external/3rdparty"/>
  36. </extraFiles>
  37. <stubs>
  38. <file name="build/stubs/apcu.php"/>
  39. <file name="build/stubs/gd.php"/>
  40. <file name="build/stubs/imagick.php"/>
  41. <file name="build/stubs/intl.php"/>
  42. <file name="build/stubs/IntlChar.php"/>
  43. <file name="build/stubs/ldap.php"/>
  44. <file name="build/stubs/memcached.php"/>
  45. <file name="build/stubs/redis.php"/>
  46. <file name="build/stubs/redis_cluster.php"/>
  47. <file name="build/stubs/sftp.php"/>
  48. <file name="build/stubs/ssh2.php"/>
  49. <file name="build/stubs/xsl.php"/>
  50. </stubs>
  51. <issueHandlers>
  52. <UndefinedFunction>
  53. <errorLevel type="suppress">
  54. <!-- template functions: https://github.com/nextcloud/server/blob/6e8e34fef920a073118c22111f0f31eb3b3a91dc/lib/private/legacy/template/functions.php -->
  55. <referencedFunction name="p"/>
  56. <referencedFunction name="emit_css_tag"/>
  57. <referencedFunction name="emit_css_loading_tags"/>
  58. <referencedFunction name="emit_script_tag"/>
  59. <referencedFunction name="emit_script_loading_tags"/>
  60. <referencedFunction name="print_unescaped"/>
  61. <referencedFunction name="script"/>
  62. <referencedFunction name="vendor_script"/>
  63. <referencedFunction name="style"/>
  64. <referencedFunction name="vendor_style"/>
  65. <referencedFunction name="translation"/>
  66. <referencedFunction name="component"/>
  67. <referencedFunction name="link_to"/>
  68. <referencedFunction name="link_to_docs"/>
  69. <referencedFunction name="image_path"/>
  70. <referencedFunction name="mimetype_icon"/>
  71. <referencedFunction name="preview_icon"/>
  72. <referencedFunction name="publicPreview_icon"/>
  73. <referencedFunction name="human_file_size"/>
  74. <referencedFunction name="strip_time"/>
  75. <referencedFunction name="relative_modified_date"/>
  76. <referencedFunction name="html_select_options"/>
  77. </errorLevel>
  78. </UndefinedFunction>
  79. <UndefinedGlobalVariable>
  80. <errorLevel type="suppress">
  81. <referencedVariable name="$_"/>
  82. <referencedVariable name="$l"/>
  83. <referencedVariable name="$theme"/>
  84. <!-- false positive: https://github.com/nextcloud/server/blob/cb057829f72c70e819f456edfadbb29d72dba832/lib/private/Console/Application.php#L92 -->
  85. <file name="core/register_command.php" />
  86. </errorLevel>
  87. </UndefinedGlobalVariable>
  88. </issueHandlers>
  89. </psalm>