forked from RetroAchievements/RAWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
37 lines (37 loc) · 1.28 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
includes:
- ./vendor/nunomaduro/larastan/extension.neon
parameters:
paths:
# - app
- cronjobs
- lib
- public
- resources/helpers
- src
# - tests
# TODO v2 was at level 6
level: 5
checkMissingIterableValueType: false
treatPhpDocTypesAsCertain: false
# TODO figure out why github actions phpstan does not find the same
reportUnmatchedIgnoredErrors: false
ignoreErrors:
#- '#Unsafe usage of new static#'
# accessors to polymorphic relationships
#- '#Access to an undefined property [a-zA-Z0-9\&\\_]+::\$[trigger|subject]#'
#- '#Access to an undefined property App\\Legacy\\Models\\.*#'
# Builder::exists() is not private
#- '#Call to private method exists\(\) of parent class Illuminate\\Database\\Eloquent\\Builder<Illuminate\\Database\\Eloquent\\Model>.#'
- '#Parameter (.*) of function htmlentities expects#'
excludePaths:
# unrelated directories
- public/tmp
# disabled features
- public/API/API_GetFeed.php
- public/attemptmerge.php
- public/awardedList.php
- public/feed.php
- public/popularGames.php
- public/rss-activity.xml.php
# third party
- lib/util/recaptcha.php