phpstan.neon 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. parameters:
  2. customRulesetUsed: true
  3. level: 2
  4. fileExtensions:
  5. - php
  6. paths:
  7. - htdocs
  8. - scripts
  9. excludePaths:
  10. analyseAndScan:
  11. - htdocs/custom/*
  12. - htdocs/dev/*
  13. - htdocs/doc/*
  14. - htdocs/documents/*
  15. - htdocs/install/doctemplates/*
  16. - htdocs/langs/*
  17. - htdocs/modulebuilder/template/test/*
  18. - htdocs/support/*
  19. - htdocs/test/*
  20. analyse:
  21. - htdocs/includes/*
  22. checkAlwaysTrueCheckTypeFunctionCall: false
  23. checkAlwaysTrueInstanceof: false
  24. checkAlwaysTrueStrictComparison: false
  25. checkClassCaseSensitivity: false
  26. checkFunctionArgumentTypes: false
  27. checkFunctionNameCase: false
  28. checkArgumentsPassedByReference: false
  29. checkMaybeUndefinedVariables: false
  30. checkNullables: false
  31. checkThisOnly: true
  32. checkUnionTypes: false
  33. checkExplicitMixedMissingReturn: false
  34. checkPhpDocMissingReturn: false
  35. reportMaybes: false
  36. reportMaybesInMethodSignatures: false
  37. reportStaticMethodSignatures: false
  38. polluteScopeWithLoopInitialAssignments: true
  39. polluteScopeWithAlwaysIterableForeach: true
  40. reportMagicMethods: false
  41. reportMagicProperties: false
  42. ignoreErrors:
  43. - '#Undefined variable: \$langs#'
  44. - '#Undefined variable: \$user#'
  45. - '#Undefined variable: \$db#'
  46. - '#Undefined variable: \$conf#'
  47. - '#Undefined variable: \$hookmanager#'
  48. - '#Undefined variable: \$mysoc#'
  49. - '#Undefined variable: \$error#'
  50. - '#Undefined variable: \$errors#'
  51. - '#Undefined variable: \$form#'
  52. - '#has an unused parameter \$param#'
  53. - '#Function llxHeader invoked with#'
  54. - '#Function llxHeaderVierge invoked with#'
  55. - '#Function llxFooter invoked with#'
  56. - '#Function llxFooterVierge invoked with#'
  57. - '#If condition is always true#'
  58. - '#always exists and is not falsy#'
  59. - '#is always true#'
  60. - '#is always fal#'
  61. - '#has no return type specified#'
  62. - '#always exists and is not nullable#'
  63. - '#PHPDoc tag @return has invalid value#'
  64. - '#type has no value type specified in iterable type array#'
  65. - '#with no value type specified in iterable type array#'
  66. - '#Empty array passed to foreach#'
  67. - '#Result of function fieldList#'
  68. - '#in isset\(\) is not nullable#'
  69. - '#in isset\(\) is never defined#'
  70. - '#(\$force_dolibarr_lib|\$dolibarr_main_db).*in empty\(\) is never defined.#'
  71. - '#Caught class Stripe#'
  72. - '#Sprain\\SwissQrBill\\#'
  73. - '#Constructor of class DolEditor has an unused parameter \$toolbarlocation#'
  74. - '#Constructor of class DoliDB\w+ has an unused parameter \$type#'
  75. internalErrorsCountLimit: 50
  76. cache:
  77. nodesByFileCountMax: 512
  78. nodesByStringCountMax: 512
  79. reportUnmatchedIgnoredErrors: false
  80. universalObjectCratesClasses:
  81. - stdClass
  82. - SimpleXMLElement
  83. earlyTerminatingMethodCalls: []
  84. dynamicConstantNames:
  85. - ICONV_IMPL
  86. - PHP_VERSION
  87. - PHP_MAJOR_VERSION
  88. - PHP_MINOR_VERSION
  89. - PHP_RELEASE_VERSION
  90. - PHP_VERSION_ID
  91. - PHP_EXTRA_VERSION
  92. - PHP_ZTS
  93. - PHP_DEBUG
  94. - PHP_MAXPATHLEN
  95. - PHP_OS
  96. - PHP_OS_FAMILY
  97. - PHP_SAPI
  98. - PHP_EOL
  99. - PHP_INT_MAX
  100. - PHP_INT_MIN
  101. - PHP_INT_SIZE
  102. - PHP_FLOAT_DIG
  103. - PHP_FLOAT_EPSILON
  104. - PHP_FLOAT_MIN
  105. - PHP_FLOAT_MAX
  106. - DEFAULT_INCLUDE_PATH
  107. - PEAR_INSTALL_DIR
  108. - PEAR_EXTENSION_DIR
  109. - PHP_EXTENSION_DIR
  110. - PHP_PREFIX
  111. - PHP_BINDIR
  112. - PHP_BINARY
  113. - PHP_MANDIR
  114. - PHP_LIBDIR
  115. - PHP_DATADIR
  116. - PHP_SYSCONFDIR
  117. - PHP_LOCALSTATEDIR
  118. - PHP_CONFIG_FILE_PATH
  119. - PHP_CONFIG_FILE_SCAN_DIR
  120. - PHP_SHLIB_SUFFIX
  121. - PHP_FD_SETSIZE