-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
36 lines (35 loc) · 1.19 KB
/
phpstan.neon
File metadata and controls
36 lines (35 loc) · 1.19 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
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- phpstan-baseline.neon
parameters:
level: 9
reportUnmatchedIgnoredErrors: false
paths:
- Civi
- CRM
- tests
excludePaths:
analyse:
# Auto-generated files - don't analyze but allow scanning for type info
- CRM/Paymentprocessingcore/DAO/*
- paymentprocessingcore.civix.php
- '*.mgd.php'
- tests/bootstrap.php
scanFiles:
- paymentprocessingcore.civix.php
# CiviCRM Api4 entity classes that are dynamically generated at runtime.
# Must be scanFiles (not stubFiles) because stubFiles are overridden
# when scanDirectories loads the Civi\Api4 namespace from core.
- stubs/CiviApi4.stub.php
- /build/site/web/sites/all/modules/civicrm/Civi.php
# Test base classes needed for type information
- tests/phpunit/BaseHeadlessTest.php
scanDirectories:
# Scan DAO files for type information (but don't analyze them)
- CRM/Paymentprocessingcore/DAO
# Scan CiviCRM core for type information
- /build/site/web/sites/all/modules/civicrm/Civi
- /build/site/web/sites/all/modules/civicrm/CRM
- /build/site/web/sites/all/modules/civicrm/api
# Scan test infrastructure for type information
- tests