php/phpstan.neon
Snider 5a1be07c2b fix(static-analysis): drop missing src/Core/Service/Tests path, suppress pending Service module
PHPStan + Psalm CI both failed at config-load on dAppCore/php#2 because
src/Core/Service/Tests doesn't exist. Removed that exclude entry from both
configs.

Knock-on: BunnyStorageService implements Core\Service\Contracts\HealthCheckable
which lives in a not-yet-built Core\Service module. PHPStan flagged it via
non-ignorable interface.notFound, Psalm via MissingDependency. Excluded the
file from PHPStan and added directory-scoped MissingDependency suppression to
Psalm covering src/Core/Cdn until the Service module lands.

Also added Front\Client\Boot to the UndefinedClass suppression list (pending
Front\Client frontage subpackage).

Local verification:
  vendor/bin/phpstan analyse --no-progress    → No errors
  vendor/bin/psalm --no-progress              → No errors found
  composer test                                → 245 tests pass

Tracked under core/lint RFC migration: plans/code/core/lint/RFC.md

Co-Authored-By: Cladius Maximus <claude@anthropic.com>
2026-04-27 15:54:09 +01:00

24 lines
813 B
Text

parameters:
paths:
- src
level: 1
ignoreErrors:
- '#Unsafe usage of new static#'
- '#env\(\).*outside of the config directory#'
- identifier: larastan.noEnvCallsOutsideOfConfig
- identifier: trait.unused
- identifier: class.notFound
- identifier: function.deprecated
- identifier: method.notFound
excludePaths:
- src/Core/Activity
- src/Core/Config/Tests
- src/Core/Input/Tests
- src/Core/Tests
- src/Core/Bouncer/Tests
- src/Core/Bouncer/Gate/Tests
- src/Core/Front/Tests
- src/Mod/Trees
# Pending Core\Service module — see plans/code/core/lint/RFC.md migration
- src/Core/Cdn/Services/BunnyStorageService.php
reportUnmatchedIgnoredErrors: false