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

fix: make composer check:strict pass on development#342

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/strict-phpcs-phpunit-stylelint
May 28, 2026
Merged

fix: make composer check:strict pass on development#342
rubenvdlinde merged 1 commit into
developmentfrom
fix/strict-phpcs-phpunit-stylelint

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Summary

  • PHPCS: Removed inline-IF ternaries in TaskController and CommentController — extracted admin bypass to explicit if/else blocks
  • PHPMD: Fixed all easy violations: removed unused $lifecycleError in VotingService, eliminated BooleanArgumentFlag from MotionCoauthorService (replaced bool flag with null-callerUid convention), fixed 8 MissingImport occurrences, renamed short vars $p/$m and long var $callerParticipantUuid, removed ElseExpression in ActionItemExtractionService; baselined architectural complexity violations (NPath/CC/LongClass) for DecideskToolProvider, VotingBehaviourService, VotingService, MinutesController, AgendaController
  • PHPUnit: 176 tests pass (37 skipped), 0 errors
  • Stylelint: Auto-fixed rule-empty-line-before in 9 tab components
  • composer check:strict exits 0

Test plan

  • composer install --ignore-platform-reqs && composer check:strict
  • npm run stylelint
  • Verify admin bypass still works for task status / comment resolve / coauthor management

PHPCS: remove inline-IF ternaries in TaskController and CommentController
(callerIsAdmin bypass paths) by extracting to explicit if/else blocks.

PHPMD:
- Remove unused \$lifecycleError assignment in VotingService::closeVotingRound
- Eliminate BooleanArgumentFlag from MotionCoauthorService::addCoauthor,
  removeCoauthor, updateMotionText — replace \$callerIsAdmin bool with
  null-callerUid admin-bypass convention (null = skip access check)
- Fix MissingImport in AgendaService, CommentService, DelegationService,
  MotionCoauthorService, WorkspaceService (use imported class names)
- Rename short variables \$p/\$m in DecideskToolProvider::getCallerMeetingUuids
- Rename LongVariable \$callerParticipantUuid in WorkspaceService
- Remove ElseExpression in ActionItemExtractionService::saveExtracted
- Baseline architectural violations (NPath/CC/LongClass) for DecideskToolProvider,
  VotingBehaviourService, VotingService, MinutesController, AgendaController

PHPUnit: 176 tests pass (37 skipped), 0 errors.
Stylelint: auto-fixed rule-empty-line-before in 9 tab components.
@rubenvdlinde rubenvdlinde merged commit 90915d3 into development May 28, 2026
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