-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
54 lines (45 loc) · 1.74 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
54 lines (45 loc) · 1.74 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# PHPStan configuration — XOOPS module DevOps baseline.
# Generated from the baseline template for profile: XoopsCore27 / PHP 8.2+
# Overlay version: 1.1.0
# xoops-overlay:profile=core27
#
# Copy to phpstan.neon to override locally; the .dist file stays in sync with the baseline.
#
# phpstan-strict-rules and phpstan-deprecation-rules are activated automatically by
# phpstan/extension-installer (added to require-dev by the baseline installer). No manual
# `includes` of their rules.neon is needed — and adding one would double-register them.
includes:
- phpstan-baseline.neon
parameters:
level: 8
phpVersion: 80200
# Scan the whole module and exclude what isn't analyzable, rather than listing
# source dirs that legacy modules may not have. `(?)` marks a path optional so
# PHPStan never errors when it's absent.
paths:
- .
excludePaths:
- vendor (?)
- language (?)
- templates (?)
- templates_c (?)
- assets (?)
- docs (?)
- .build (?)
- node_modules (?)
- tests/bootstrap.php (?)
- rector.php (?)
- .php-cs-fixer.dist.php (?)
# XOOPS core classes (XoopsObject, handlers, Criteria, $xoopsDB, …) are not
# composer-autoloadable during analysis. Signatures come from this stub.
stubFiles:
- stubs/xoops.stub
bootstrapFiles:
- phpstan-bootstrap.php
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# XOOPS injects these as superglobals at runtime; analysis can't see the assignment.
- '#Variable \$xoops(DB|User|Module|ModuleConfig|Tpl|Security|Config|Logger|Option) might not be defined#'
parallel:
maximumNumberOfProcesses: 4