Skip to content

chore: PHPStan 基线 + 覆盖率门槛 - #3

Merged
JanHuang merged 3 commits into
masterfrom
chore/phpstan-coverage-20261026
Oct 27, 2026
Merged

JanHuang merged 3 commits into
masterfrom
chore/phpstan-coverage-20261026

Conversation

@JanHuang

@JanHuang JanHuang commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

变更

  • 引入 phpstan/phpstan ^1.12.24(CI 实际 1.12.34),PHPStan level 5
  • 对现有问题生成 phpstan-baseline.neon,CI 执行 PHPStan 防止新增错误
  • CI 使用 Xdebug/PCOV 生成 clover 覆盖率并校验阈值
  • 覆盖率门槛:90%(当前实测 94.59%)
  • PHPUnit 配置补充 <source>,修复覆盖率过滤
  • 修复少量真实代码问题(如 fastD 缺失 return)

说明

  • 本 PR 不发版本
  • 后续可逐步提高 level/覆盖率门槛

- require-dev phpstan/phpstan ^1.12.24,level 5 基线
- CI 增加 PHPStan 步骤
- CI 使用 Xdebug 生成 clover 覆盖率并校验阈值(阈值待测量后固化)
@JanHuang
JanHuang merged commit 9b9cd15 into master Oct 27, 2026
1 of 2 checks passed
@JanHuang
JanHuang deleted the chore/phpstan-coverage-20261026 branch October 27, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant