Skip to content

RichterMeasure the reach of a code change

Static impact analysis for Laravel. See the entry points a diff reaches, the ones no test references, and the hazards it carries, before the review starts.

Richter

What a report looks like

text
Entry points reached: 2
  - command::categories:sync  (app/Console/Commands/SyncCategories.php)  [test-referenced]
  - route::PATCH::/api/posts/{post}  (routes/api.php:41)  [⚠ no test references this]  [authed]

Findings (in the changed source itself):
  ! app/Models/Post.php: eager-load string 'ownerprofile': segment 'ownerprofile' is not a
    method on any model — check the relation name

Risk:   MEDIUM (advisory) — no hazard; 1 of 2 reached surfaces have no test referencing them
Impact: 2 entry point(s) · 7 impacted node(s)

Install it as a dev dependency and run one command on your branch. The analysis is static: it never executes your application's routes, jobs, or commands.

bash
composer require --dev sandermuller/richter
php artisan richter:detect-changes

Where to next