RoundCube Webmail
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.9 KiB

4 months ago
  1. includes:
  2. - phar://phpstan.phar/conf/bleedingEdge.neon
  3. parameters:
  4. level: 4
  5. checkMissingOverrideMethodAttribute: true
  6. paths:
  7. - .
  8. excludePaths:
  9. - node_modules (?)
  10. - vendor
  11. ignoreErrors:
  12. # relax strict rules
  13. - '~^Only booleans are allowed in .+, .+ given( on the (left|right) side)?\.~'
  14. - '~^Variable (static )?(property access|method call) on .+\.~'
  15. - '~^Variable variables are not allowed.~'
  16. - '~^Variable .* might not be defined\.~'
  17. - '~Call to function array_filter\(\) requires parameter #2 to be passed to avoid loose comparison semantics.~'
  18. # TODO
  19. - '~^Dynamic call to static method .+\.~' # TODO in https://github.com/roundcube/roundcubemail/pull/9314
  20. - '~^Construct empty\(\) is not allowed\. Use more strict comparison\.~'
  21. - '~^Loose comparison via "[=!]=" is not allowed\.~'
  22. - '~^Casting to .+ something that''s already .+\.~'
  23. - '~^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.~'
  24. - '~^Call to function (array_search|in_array)\(\) requires parameter #3 to be set\.~'
  25. - '~^Call to function base64_decode\(\) requires parameter #2 to be (set|true).~'
  26. -
  27. message: '~^Parameter #1 \$browser \(Roundcube\\Tests\\Browser\\Browser\) of method Roundcube\\Tests\\Browser\\Components\\\w+::assert\(\) should be contravariant with parameter \$browser \(Laravel\\Dusk\\Browser\) of method Laravel\\Dusk\\Component::assert\(\)$~'
  28. count: 7
  29. path: tests/Browser/Components/*.php
  30. # https://github.com/php/pecl-authentication-krb5
  31. -
  32. path: 'program/lib/Roundcube/rcube_imap_generic.php'
  33. message: '~^(Instantiated class (GSSAPIContext|KRB5CCache) not found|Call to method \w+\(\) on an unknown class (GSSAPIContext|KRB5CCache))\.$~'
  34. count: 7