Skip to content

chore: untrack phpmetrics-deps/, generated output .gitignore already lists - #2352

Merged
rubenvdlinde merged 1 commit into
developmentfrom
chore/drop-committed-phpmetrics-deps
Aug 5, 2026
Merged

chore: untrack phpmetrics-deps/, generated output .gitignore already lists#2352
rubenvdlinde merged 1 commit into
developmentfrom
chore/drop-committed-phpmetrics-deps

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

What

Stops tracking phpmetrics-deps/ — 39 files of generated PHPMetrics HTML report scaffolding. The files stay on disk; they are only removed from the index (git rm -r --cached).

Why

1. .gitignore already lists it. Line 30 is /phpmetrics-deps/. The directory was committed anyway, so the ignore rule has been inert. git check-ignore -v confirms the rule matches every path once untracked:

.gitignore:30:/phpmetrics-deps/	phpmetrics-deps/index.html
.gitignore:30:/phpmetrics-deps/	phpmetrics-deps/js/clusterize.min.js

2. It is build output, not source. PHPMetrics never writes to this path:

  • composer.json:45-48--report-html=phpmetrics, phpmetrics/report.json, …
  • .phpqa.yml:44-45--report-html=phpqa/phpmetrics, --report-json=phpqa/phpmetrics/metrics.json

3. Nothing references it. Grepping every tracked file outside the directory for phpmetrics-deps returns exactly one hit — the .gitignore entry itself. No workflow, script, config, doc or source file reads these paths, so removing them cannot break a build or a report.

4. It dragged third-party licences into an EUPL-1.2 repository. The bundle vendors, among others:

  • js/clusterize.min.jsGPLv3, Copyright (c) 2015 Denis Lukov
  • js/sort-table.min.js — MIT, Copyright (c) 2006-2013 Tyler Uebele
  • css/milligram.min.css — MIT, Copyright (c) 2016 CJ Patoilo

plus bundled Roboto/Material-Icons font binaries and d3. None of it is ours, none of it is used, and it is the only non-EUPL licensed material left in the repository. Untracking it removes the contamination without relicensing anyone else's work — these files are not touched or rewritten, only dropped from the index.

Scope

39 deletions, every one under phpmetrics-deps/; no other path is touched.

…lready lists

39 files of PHPMetrics HTML report scaffolding were committed despite
.gitignore:30 already listing /phpmetrics-deps/. Nothing in the repo reads
these paths — PHPMetrics writes to phpmetrics/ (composer.json) and
phpqa/phpmetrics (.phpqa.yml), never phpmetrics-deps/.

They also carried third-party code into an EUPL-1.2 repo, including
js/clusterize.min.js (GPLv3, (c) 2015 Denis Lukov) and MIT-licensed
js/sort-table.min.js and css/milligram.min.css.

Untracked only; the files stay on disk and remain ignored.
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/openregister @ 418dc3e

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
check-specs
test-l10n
composer ✅ 173/173
npm ✅ 713/713
PHPUnit
Newman
Playwright
Hydra gates

Quality workflow — 2026-08-05 19:05 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde

Copy link
Copy Markdown
Contributor Author

Merging: fully green — 27 SUCCESS, 4 SKIPPED, 0 failures.

[gate-28] license-triangle: PASS, and RESULT: ALL 59 APPLICABLE GATES PASSED — and all 59 of them ran against a real (non-empty) diff scope.

The diff is 39 deletions, every one under phpmetrics-deps/; no other path is touched and no file is added or renamed.

@rubenvdlinde
rubenvdlinde merged commit dc249d5 into development Aug 5, 2026
31 checks passed
@rubenvdlinde
rubenvdlinde deleted the chore/drop-committed-phpmetrics-deps branch August 5, 2026 19:08
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