Skip to content

fix: Resolve remaining PHPCS violations in CI#937

Merged
rubenvdlinde merged 2 commits intodevelopmentfrom
fix/sbom-reusable-workflow
Mar 19, 2026
Merged

fix: Resolve remaining PHPCS violations in CI#937
rubenvdlinde merged 2 commits intodevelopmentfrom
fix/sbom-reusable-workflow

Conversation

@rubenvdlinde
Copy link
Contributor

Summary

  • Add --warning-severity=0 to composer phpcs script to prevent line-length warnings (exit code 1) from causing CI failure under bash -e
  • Fix line-length issues by extracting intermediate variables in DeleteObject, MagicTableHandler, and SaveObjects
  • Remove Squiz.PHP.DisallowInlineIf rule to allow ternary operators (needed after ElseExpression elimination)

Root cause

The reusable CI workflow runs composer phpcs; RC=$? under bash -e. When PHPCS returns exit code 1 (warnings only, no errors), bash immediately exits before the RC=$? line executes, so the warning-tolerance logic never runs.

Test plan

  • CI PHPCS job passes with exit code 0
  • No PHPCS errors in lib/

- Add --warning-severity=0 to composer phpcs script to prevent
  warnings from causing non-zero exit code in CI (bash -e kills
  the process before the exit code handler runs)
- Fix line-length warnings by extracting intermediate variables
  in DeleteObject, MagicTableHandler, and SaveObjects
- Remove Squiz.PHP.DisallowInlineIf rule to allow ternary operators
- Fix whitespace issues in phpcs.xml
@github-actions
Copy link
Contributor

Quality Report

Repository ConductionNL/openregister
Commit ba41c3d
Branch 937/merge
Event pull_request
Generated 2026-03-19 14:32 UTC
Workflow Run https://github.com/ConductionNL/openregister/actions/runs/23299839597

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 (147 total)

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

npm dependencies (586 total)

Metric Count
Approved (allowlist) 585
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 rubenvdlinde merged commit 3943dae into development Mar 19, 2026
18 of 19 checks passed
@rubenvdlinde rubenvdlinde deleted the fix/sbom-reusable-workflow branch March 19, 2026 14:42
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.

2 participants