Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Per-app phpstan lint debt baseline.
#
# Regenerate with: ./vendor/bin/phpstan analyse --generate-baseline
# Apps without lint debt ship this file empty.
#
# Tracked-debt entries here MUST have an open GitHub issue. The directive for the
# Conduction fleet is "no per-app validation rules; if we need exceptions then
# they are for all apps." A baseline entry is acceptable only as a temporary
# tracked-debt marker with a removal timeline.

parameters:
ignoreErrors: []
9 changes: 8 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
includes:
# Per-app tracked lint debt lives here (auto-generated via `phpstan --generate-baseline`).
# Apps without debt ship an empty baseline file; canonical includes are otherwise byte-identical
# across the fleet.
- phpstan-baseline.neon

parameters:
level: 5
paths:
Expand Down Expand Up @@ -42,7 +48,8 @@ parameters:
- '#Doctrine\\DBAL\\[a-zA-Z\\]+.*not found#'
- '#on an unknown class Doctrine\\DBAL\\#'
# Dynamic HTTP status codes from business rule validation results
- '#Parameter \$statusCode of class OCP\\AppFramework\\Http\\JSONResponse constructor expects#'
# (matches both `Parameter $statusCode` and `Parameter #N $statusCode` forms emitted by phpstan)
- '#Parameter (#\d+ )?\$statusCode of class OCP\\AppFramework\\Http\\JSONResponse constructor expects#'
# registerRepairStep exists on server; not yet in nextcloud/ocp stub used for analysis
- '#Call to an undefined method OCP\\AppFramework\\Bootstrap\\IRegistrationContext::registerRepairStep#'
# OCP stub gaps for methods that exist at runtime
Expand Down
1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<referencedClass name="OCA\OpenRegister\Service\ConfigurationService"/>
<referencedClass name="OCA\OpenRegister\Service\RegisterService"/>
<referencedClass name="OCA\OpenRegister\Service\FileService"/>
<referencedClass name="OCA\OpenRegister\Service\CalendarEventService"/>
<referencedClass name="OCA\OpenRegister\Mcp\IMcpToolProvider"/>
<!-- Additional OCP infrastructure types used across the fleet -->
<referencedClass name="OCP\AppFramework\Bootstrap\IBootContext"/>
Expand Down
Loading