fix: Resolve CI quality check failures#12
Conversation
…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)
Quality Report
Summary
PHP Quality
Vue Quality
Security
License Compliance
composer dependencies (103 total)
npm dependencies (342 total)
PHPUnit TestsPHPUnit 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.
|
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.
Quality Report
Summary
PHP Quality
Vue Quality
Security
License Compliance
composer dependencies (103 total)
npm dependencies (342 total)
PHPUnit TestsPHPUnit 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.
|
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).
Quality Report
Summary
PHP Quality
Vue Quality
Security
License Compliance
composer dependencies (103 total)
npm dependencies (342 total)
PHPUnit TestsPHPUnit 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.
|
| "require": { | ||
| "php": "^8.1" | ||
| "php": "^8.1", | ||
| "ramsey/uuid": "^4.9" |
There was a problem hiding this comment.
Small check, elsewhere Symfony/Uuid is used (IIRC because it was in Nextcloud already), why do we require ramsey/uuid here?
fix: Resolve CI quality check failures
Summary
MetricsController.php(127 chars, limit 125) by extracting Prometheus labels into asprintf()callMetricsController::countTable(table:)->countTable(tableName:)(matches actual parameter name)str_starts_with(prefix:)->str_starts_with(needle:)inUserAttributeResolverstr_ends_with(suffix:)->str_ends_with(needle:)inUserAttributeResolver@extends QBMapper<Tile>template annotation toTileMapperramsey/uuidas explicit dependency (used byTemplateServiceandAdminTemplateService)Test plan