• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DerManoMann / openapi-verifier / 35562429355
78%
master: 53%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 21 Sep 2026 04:51AM UTC
Jobs 1
Files 9
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Sep 2026 04:50AM UTC coverage: 78.313% (-0.1%) from 78.443%
35562429355

push

github

web-flow
Add rector, and split lint off test (#73)

* Split the lint step off the test script

Running the linters as part of `composer test` couples a local test run to tooling
no CI job invokes that way: code-style runs `composer lint`, static-analysis runs
`composer analyse`, and the adapter jobs call phpunit directly. `test` is phpunit
alone now.

* Add rector, and run it with static analysis rather than with lint

`rector.php` matches the repo's floor (PHP 8.1) and enables the prepared sets plus
TypedPropertyFromStrictConstructorRector; `composer rector` applies, and `composer
analyse` now ends with a dry run.

That placement is deliberate. Both frameworks are composer suggests, so rector only
sees the adapters when something installs them first — which static-analysis already
does for phpstan and code-style, where `lint` runs, does not. Run without Laravel it
reads `tests/Adapters/LaravelAdapterTest` against a base class it cannot resolve and
proposes to declare `$app` and delete `parent::setUp()`; neither is a change this
repo wants.

The `src` rewrites are that first run. One of its suggestions is dropped: typing the
loader property in `VerifiesOpenApi` also dropped its `= null`, which leaves a typed
property uninitialised and fatals on the trait's own lazy-init path — the one the
Laravel and Slim adapters reach and the test suite overrides.

* Move rector to 2.x, and keep its named-argument sorting off the fixtures

rector/rector ^1.2 requires phpstan ^1.11, which pulled the analyser back
to 1.12.34 while main resolves 2.2.14 — that, not the rewrites, is why
static-analysis reported six unmatched ignore patterns and one new error.

Rector 2's code-quality set also wants to sort named arguments
alphabetically, which would reorder the swagger-php attributes that decide
the generated specification's own order; skip those two rules. The two
remaining rewrites it proposes are applied.

The typed $openapiSpecificationLoader makes one of the baselined
"alway... (continued)

11 of 12 new or added lines in 4 files covered. (91.67%)

130 of 166 relevant lines covered (78.31%)

5.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
0.0
0.0% src/Adapters/Slim/OpenApiVerifierMiddleware.php
Jobs
ID Job ID Ran Files Coverage
1 35562429355.1 21 Sep 2026 04:51AM UTC 9
78.31
GitHub Action Run
Source Files on build 35562429355
  • Tree
  • List 9
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 09c29d30 on github
  • Prev Build on main (#35562072454)
  • Next Build on main (#35562869421)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc