forked from NamelessMC/Nameless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
33 lines (33 loc) · 1.04 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
parameters:
level: 2
paths:
- ./
excludePaths:
- cache/
- vendor/
# Ignore notices which are thrown due how nameless is written
ignoreErrors:
# prodecural programming :^)
- '#might not be defined#'
- '#Constant#'
- '#Undefined variable:#'
# when we require() files
- '#in isset\(\) is never defined.#'
# `Instanceable` classes
- '#Unsafe usage of new static\(\).#'
# $queries->getWhere()->{$property}
- '#Access to an undefined property#'
# because php is dumb
- '#Call to an undefined method ReflectionType::getName\(\).#'
- '#Call to an undefined method ReflectionType::isBuiltin\(\).#'
reportUnmatchedIgnoredErrors: false
# Autoload classes
scanDirectories:
- core/classes
- modules/Core/classes
- modules/Discord Integration/classes
- modules/Forum/classes
scanFiles:
- modules/Core/pages/api/v2/index.php
bootstrapFiles:
- core/includes/phpass.php