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

chore: sync canonical root configs + mechanical phpmd cleanup - #33

Merged
rubenvdlinde merged 1 commit into
developmentfrom
chore/sync-canonical-root-configs
May 21, 2026
Merged

chore: sync canonical root configs + mechanical phpmd cleanup#33
rubenvdlinde merged 1 commit into
developmentfrom
chore/sync-canonical-root-configs

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Summary

Phase 2 fleet-wide rollout of canonical PHP quality-tooling configs from
nextcloud-app-template. Sibling PRs already merged on shillinq (#300)
and decidesk (#243).

  • Synced canonical configs: phpcs.xml, phpmd.xml, psalm.xml,
    phpstan.neon, phpstan-bootstrap.php, plus the
    phpcs-custom-sniffs/ ruleset (SpecTagSniff, NoLegacyServerAccessorsSniff).
  • Cosmetic naming applied to phpcs.xml and phpmd.xml only (Deskdesk vs
    AppTemplate). No per-app rule weakening.
  • Mechanical phpmd fix in source: SettingsService::loadConfiguration
    if/else refactored to two-if pattern (ElseExpression).
  • phpstan-baseline.neon generated with 1 entry: \OC::$SERVERROOT
    legacy server-accessor in SettingsService::244.
  • Tracking issue for the baselined error + the public-API BooleanArgumentFlag:
    Lint debt cleanup post-canonical-sync (Phase 2 fleet rollout) #32.

Final quality-gate counts

Gate Result
phpcs 0 errors, 21 warnings
phpstan OK (1 baselined, tracked in #32)
psalm no errors
phpmd 1 deferred (tracked in #32)

Test plan

  • phpcs --standard=phpcs.xml — 0 errors
  • phpstan analyse — OK
  • psalm — no errors
  • phpmd lib text phpmd.xml — only the public-API BooleanArgumentFlag (deferred)

🤖 Generated with Claude Code

Phase 2 fleet-wide rollout: align deskdesk's PHP quality-tooling config
with the nextcloud-app-template canonical (sibling PRs: shillinq#300,
decidesk#243).

Synced from /tmp/canonical/ → nextcloud-app-template:
- phpcs.xml, phpmd.xml, psalm.xml, phpstan.neon, phpstan-bootstrap.php
- phpcs-custom-sniffs/ (SpecTagSniff + NoLegacyServerAccessorsSniff)

Cosmetic naming applied to phpcs.xml/phpmd.xml only (Deskdesk vs
AppTemplate). No per-app rule weakening.

Mechanical phpmd fix in source:
- lib/Service/SettingsService.php: ElseExpression → two-if pattern
  (path-relative resolution in loadConfiguration()).

phpstan baselined (1 entry, tracked in #32):
- \OC::$SERVERROOT legacy server-accessor in SettingsService::244.

Deferred to #32 (architectural, public API):
- BooleanArgumentFlag on SettingsService::loadConfiguration($force).

Final quality-gate counts:
- phpcs:   0 errors, 21 warnings
- phpstan: OK (1 baselined)
- psalm:   no errors
- phpmd:   1 deferred (architectural)
@rubenvdlinde
rubenvdlinde merged commit ad3aa02 into development May 21, 2026
14 checks passed
@rubenvdlinde
rubenvdlinde deleted the chore/sync-canonical-root-configs branch May 21, 2026 20:33
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/deskdesk @ e759798

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer ✅ 100/100
npm ✅ 591/591
PHPUnit
Newman
Playwright ⏭️

Coverage: 0% (0/3 statements)


Quality workflow — 2026-05-21 20:35 UTC

Download the full PDF report from the workflow artifacts.

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.

1 participant