Repository navigation
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
78 lines (77 loc) · 2.7 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
78 lines (77 loc) · 2.7 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
includes:
- .phpstan/phpstan.github.neon
parameters:
bootstrapFiles:
- .phpstan/phpstan_panther_alias.php
- .phpstan/phpstan_include_paths.php
- .phpstan/phpstan_legacy_aliases.php
level: 10
# Set tmpDir explicitly so we know what it is
tmpDir: tmp-phpstan
excludePaths:
analyseAndScan:
# excluding for easy dev setups since ccdaservice is a path below
- ccdaservice/node_modules/*
# oe-module-claimrev-connect is a Composer dependency
# (claimrevolution/oe-module-claimrev-connect), relocated into this path by the
# oe-module-installer-plugin during `composer install`. It is third-party code,
# not maintained in this repo, so exclude it from analysis the same way vendor/
# is excluded.
- interface/modules/custom_modules/oe-module-claimrev-connect/*
# Acceptance-harness bootstrap scripts — runtime-only. install-helper.php
# is copied into a running container's mount point at execution time
# and depends on container-absolute paths (autoload.php under
# /var/www/localhost/htdocs/openemr) that don't exist on the runner
# where phpstan runs. Nothing else references these files at build
# time, so excluding from analysis is appropriate.
- tests/Acceptance/bin/*.php
analyse:
# Generated FHIR R4 parser map: a single ~61k-line constant array
# (PHPFHIRParserMap::$_bigDumbMap) produced by the php-fhir generator and never
# hand-edited. Analysing it costs ~90s and ~1 GB on its own because a constant
# array literal with more than 256 keys degrades to a general array via an
# expensive value-type union. Keep scanning it so the PHPFHIRParserMap class
# stays discoverable for callers, but skip the (pointless) analysis.
- src/FHIR/R4/PHPFHIRParserMap.php
paths:
- Documentation
- _rest_routes.inc.php
- acl_upgrade.php
- admin.php
- apis
- ccdaservice
- ccr
- cli
- config
- contrib
- controller.php
- controllers
- custom
- gacl
- index.php
- interface
- ippf_upgrade.php
- library
- oauth2
- portal
- setup.php
- sites
- sphere
- sql_patch.php
- sql_upgrade.php
- src
- templates
- tests
- tools/release/bin
- tools/release/src
- version.php
scanFiles:
- library/sql.inc.php
- interface/modules/custom_modules/oe-module-faxsms/.phpstan/SignalWireStubs.php
# Stubs for legacy constants that are defined at runtime but whose define()
# calls PHPStan can't follow (dynamic require paths / external PEAR libs).
# See each stub file's header for what it covers.
- .phpstan/stubs/postcalendar_constants.php
- .phpstan/stubs/sasl_constants.php
# For reasons I can't sort out, using scanDirectories or stubFiles doesn't work here.
- .phpstan/stubs/pdo_mysql.stub