-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
33 lines (31 loc) · 1.85 KB
/
Copy pathphpstan.neon
File metadata and controls
33 lines (31 loc) · 1.85 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
# Buildiq — Conduction PHPStan config.
#
# The shared base is the single source of truth. Everything here is either the
# app's own tracked debt or an ignore naming a symbol that exists in no other
# fleet app. Anything you are tempted to add that another app would also need
# belongs in the base, not here.
includes:
- vendor/conduction/hydra-gates/quality-config/phpstan-base.neon
# Per-app tracked lint debt (auto-generated via `phpstan --generate-baseline`).
- phpstan-baseline.neon
parameters:
# `lib/Resources/template` USED to be excluded by the shared base. It left the
# base in conduction/hydra-gates v1.7.3, because a conditional path has no
# spelling that is safe on both PHPStan majors: plain aborts 2.x (it validates
# the entry), the `(?)` marker makes NEON parse it as an entity and aborts 2.x
# differently, and quoting stops 1.x stripping the marker so the exclusion
# silently matches nothing — which would have started analysing this snapshot
# with nobody told. Only the apps that actually ship the directory carry it.
excludePaths:
- lib/Resources/template
# App-specific only. The base already sets level, paths, bootstrapFiles,
# excludePaths, scanDirectories and every fleet-wide ignore.
scanFiles:
# OpenRegister lifecycle-guard contract (GuardResult + LifecycleGuardInterface)
# so the app-registered ApplicationVersionOwnerGuard resolves the OR
# interface it implements during static analysis (buildiq-rbac).
- tests/stubs/openregister-lifecycle.stub.php
# AppHost Settings engine stubs (GenericSettingsSection + GenericAdminSettings)
# so SettingsSection and AdminSettings resolve their parent constructors during
# static analysis when the openregister sibling app is absent (ADR-040).
- tests/stubs/openregister-apphost.stub.php