Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

fix: Resolve CI quality check failures#12

Merged
rubenvdlinde merged 5 commits into
developmentfrom
fix/ci-quality-checks
Apr 24, 2026
Merged

fix: Resolve CI quality check failures#12
rubenvdlinde merged 5 commits into
developmentfrom
fix/ci-quality-checks

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Summary

  • PHPCS: Fixed line-length violation in MetricsController.php (127 chars, limit 125) by extracting Prometheus labels into a sprintf() call
  • Named parameters: Fixed 3 invalid named parameter bugs that would cause runtime errors:
    • MetricsController::countTable(table:) -> countTable(tableName:) (matches actual parameter name)
    • str_starts_with(prefix:) -> str_starts_with(needle:) in UserAttributeResolver
    • str_ends_with(suffix:) -> str_ends_with(needle:) in UserAttributeResolver
  • Psalm: Added @extends QBMapper<Tile> template annotation to TileMapper
  • Dependencies: Added ramsey/uuid as explicit dependency (used by TemplateService and AdminTemplateService)

Test plan

  • CI Code Quality workflow passes (PHPCS, PHPStan, Psalm, PHPMD all green)
  • Metrics endpoint still returns valid Prometheus output
  • Dashboard tile operations still work correctly

…ters

- MetricsController: Use sprintf() for Prometheus info label to stay under 125-char line limit
- MetricsController: Fix countTable() named param (table -> tableName)
- UserAttributeResolver: Fix str_starts_with/str_ends_with named params (prefix/suffix -> needle)
- TileMapper: Add @extends QBMapper<Tile> template annotation
- Add ramsey/uuid as explicit dependency (used by TemplateService and AdminTemplateService)
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report

Repository ConductionNL/mydash
Commit e934696
Branch 12/merge
Event pull_request
Generated 2026-03-19 15:46 UTC
Workflow Run https://github.com/ConductionNL/mydash/actions/runs/23303426531

Summary

Group Result
PHP Quality PASS
Vue Quality PASS
Security PASS
License PASS
PHPUnit SKIP
Newman SKIP

PHP Quality

Tool Result
lint PASS
phpcs PASS
phpmd PASS
psalm PASS
phpstan PASS
phpmetrics PASS

Vue Quality

Tool Result
eslint PASS
stylelint PASS

Security

Ecosystem Result
composer PASS
npm PASS

License Compliance

Ecosystem Result
composer PASS
npm PASS

composer dependencies (103 total)

Metric Count
Approved (allowlist) 103
Approved (override) 0
Denied 0

npm dependencies (342 total)

Metric Count
Approved (allowlist) 341
Approved (override) 1
Denied 0

PHPUnit Tests

PHPUnit tests were not enabled for this run.

Integration Tests (Newman)

Newman integration tests were not enabled for this run.


Generated automatically by the Quality workflow.

Download the full PDF report from the workflow artifacts.

The anchore/scan-action/download-grype@v5 action installs grype to a
toolcache path that is not on PATH. Use the step output `cmd` to
reference the correct binary path.
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report

Repository ConductionNL/mydash
Commit 2b048c0
Branch 12/merge
Event pull_request
Generated 2026-03-19 17:49 UTC
Workflow Run https://github.com/ConductionNL/mydash/actions/runs/23308851989

Summary

Group Result
PHP Quality PASS
Vue Quality PASS
Security PASS
License PASS
PHPUnit SKIP
Newman SKIP

PHP Quality

Tool Result
lint PASS
phpcs PASS
phpmd PASS
psalm PASS
phpstan PASS
phpmetrics PASS

Vue Quality

Tool Result
eslint PASS
stylelint PASS

Security

Ecosystem Result
composer PASS
npm PASS

License Compliance

Ecosystem Result
composer PASS
npm PASS

composer dependencies (103 total)

Metric Count
Approved (allowlist) 103
Approved (override) 0
Denied 0

npm dependencies (342 total)

Metric Count
Approved (allowlist) 341
Approved (override) 1
Denied 0

PHPUnit Tests

PHPUnit tests were not enabled for this run.

Integration Tests (Newman)

Newman integration tests were not enabled for this run.


Generated automatically by the Quality workflow.

Download the full PDF report from the workflow artifacts.

rubenvdlinde and others added 2 commits March 19, 2026 18:49
The gen-mapping and helper-validator-identifier CVEs are false positives
caused by grype matching unscoped CycloneDX names against typosquatting
advisories. The actual deps are scoped (@jridgewell/gen-mapping, etc).
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report

Repository ConductionNL/mydash
Commit 7832329
Branch 12/merge
Event pull_request
Generated 2026-03-19 17:51 UTC
Workflow Run https://github.com/ConductionNL/mydash/actions/runs/23308931449

Summary

Group Result
PHP Quality PASS
Vue Quality PASS
Security PASS
License PASS
PHPUnit SKIP
Newman SKIP

PHP Quality

Tool Result
lint PASS
phpcs PASS
phpmd PASS
psalm PASS
phpstan PASS
phpmetrics PASS

Vue Quality

Tool Result
eslint PASS
stylelint PASS

Security

Ecosystem Result
composer PASS
npm PASS

License Compliance

Ecosystem Result
composer PASS
npm PASS

composer dependencies (103 total)

Metric Count
Approved (allowlist) 103
Approved (override) 0
Denied 0

npm dependencies (342 total)

Metric Count
Approved (allowlist) 341
Approved (override) 1
Denied 0

PHPUnit Tests

PHPUnit tests were not enabled for this run.

Integration Tests (Newman)

Newman integration tests were not enabled for this run.


Generated automatically by the Quality workflow.

Download the full PDF report from the workflow artifacts.

Comment thread composer.json
"require": {
"php": "^8.1"
"php": "^8.1",
"ramsey/uuid": "^4.9"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small check, elsewhere Symfony/Uuid is used (IIRC because it was in Nextcloud already), why do we require ramsey/uuid here?

@rubenvdlinde rubenvdlinde merged commit 0bfc52f into development Apr 24, 2026
1 check was pending
@rubenvdlinde rubenvdlinde deleted the fix/ci-quality-checks branch April 24, 2026 10:22
rubenvdlinde added a commit that referenced this pull request May 3, 2026
fix: Resolve CI quality check failures
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants