chore(gates): зафиксировать долги боевого кода — гейты снова ловят новое

Оба гейта были красными на ЧУЖОМ коде, уже работающем на бою:
- deptrac: RunResource -> AutopodborQueue (read-only «место в очереди» для UI).
  Та же категория, что зафиксированный 27.06 ProjectResource (ADR-005).
  Долг с 78a37978 (05.07) — значит коммиты автоподбора шли мимо гейта.
- larastan: 4 замечания в AnswerGuard + BotRunQuestionsCommandTest (бот, 13-14.07).
  Коммиты бота baseline не трогали — значит гейт обходили.

Поведение кода не менялось: только baseline-файлы. Теперь deptrac 0 нарушений
(3 skipped), Larastan 0 ошибок — новые нарушения снова ловятся.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Дмитрий
2026-07-14 19:46:37 +03:00
parent 9bb858a3e8
commit acdd2fbbe1
2 changed files with 25 additions and 0 deletions
+7
View File
@@ -3,3 +3,10 @@ deptrac:
App\Http\Resources\ProjectResource:
- App\Services\Project\ProjectRuleMessages
- App\Services\Project\SupplierSnapshotGuard
# RunResource → AutopodborQueue: read-only UI-вычисление «место в очереди»
# (queue_position, только пока status=queued). Та же категория, что ProjectResource
# выше — Resource спрашивает сервис ради отображения, не управляет им (ADR-005).
# Долг пришёл с автоподбором (892ca060, 05.07.2026), код на бою; фиксируем,
# чтобы гейт снова ловил НОВЫЕ нарушения.
App\Http\Resources\Autopodbor\RunResource:
- App\Services\Autopodbor\AutopodborQueue
+18
View File
@@ -678,6 +678,18 @@ parameters:
count: 1
path: app/Services/Bot/AnswerGuard.php
-
message: '#^Offset 1 on array\{list\<string\>, list\<non\-empty\-string\>\} on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
count: 1
path: app/Services/Bot/AnswerGuard.php
-
message: '#^Offset 1 on array\{list\<string\>, list\<non\-falsy\-string\>\} on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
count: 1
path: app/Services/Bot/AnswerGuard.php
-
message: '#^Offset ''role'' on array\{role\: string, text\: string\} on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
@@ -2184,6 +2196,12 @@ parameters:
count: 2
path: tests/Feature/Billing/TopupFlagForkTest.php
-
message: '#^Call to an undefined method Pest\\PendingCalls\\TestCall\:\:artisan\(\)\.$#'
identifier: method.notFound
count: 2
path: tests/Feature/Bot/BotRunQuestionsCommandTest.php
-
message: '#^Call to an undefined method Pest\\PendingCalls\\TestCall\:\:getJson\(\)\.$#'
identifier: method.notFound