Fixed
Project:
Drupal Canvas
Version:
1.x-dev
Component:
Project management
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 May 2026 at 08:59 UTC
Updated:
12 May 2026 at 14:45 UTC
Jump to comment: Most recent
Comments
Comment #3
wim leersFollowed the instructions at https://github.com/shipmonk-rnd/dead-code-detector and got stuck. Turns out we don't need
… and that wasted my time 😬
Seems like this is working, here's an excerpt from my local dev env, hopefully CI confirms:
Comment #5
wim leers🥳 It does report #3589083: Remove `\Drupal\canvas\CodeComponentDataProvider::getRequiredCanvasDataLibraries`'s
— https://git.drupalcode.org/project/canvas/-/jobs/9725078#L1102
Comment #6
wim leersCurrently letting
claudefigure out how to fix the many false positives without just adding ignores.Comment #7
wim leers(Using AI for all the usage providers, only initial commit is 100% human.)
Eliminated most false positives: down to 128 errors, but there's still some false positives in there.
Comment #8
wim leersYay! As of https://git.drupalcode.org/project/canvas/-/merge_requests/1081/diffs?co..., this is now green with the exception of what #3589083 just fixed.
200 dead lines deleted! Overview in the issue summary.
First self-review, only then letting others review.
Comment #9
wim leersAll AI-generated stuff lives in
phpstan_rules/.Everything outside that was done manually.
$31.06 + a few hours of my time to never have to chase dead code again seems well worth it :)
Comment #10
wim leersComment #12
wim leersComment #14
penyaskito👏🏽👏🏽👏🏽