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

chore: restore full component lint gate - #272

Merged
chubes4 merged 1 commit into
mainfrom
chore/266-release-lint
Jul 24, 2026
Merged

chubes4 merged 1 commit into
mainfrom
chore/266-release-lint

Conversation

@chubes4

@chubes4 chubes4 commented Jul 24, 2026

Copy link
Copy Markdown
Member

Summary

  • load official WordPress and WP-CLI PHPStan symbols, add focused cross-plugin stubs, and exclude only dependency test fixtures whose fake WordPress declarations polluted component analysis
  • apply PHPCS/ESLint fixes and resolve genuine PHPStan findings in authored source, including action callback return contracts and redundant type branches
  • remove stale compiled block bundles while retaining and building their source entries, then enforce the clean baseline with Homeboy CI

Scoped exclusions

  • PHPStan skips only extrachill-network/tests/* and extrachill-api/tests/*; Homeboy scans those dependency test doubles as symbols otherwise, overriding real WordPress signatures
  • PHPStan ignores one require.fileNotFound in inc/concert-tracking/buttons.php for the generated, runtime-guarded build/concert-attendance/index.asset.php; npm run build verifies that artifact is produced
  • stale minified blocks/login-register/index.js and blocks/password-reset/index.js were removed; their authored src/index.js files remain linted and generate replacement assets under build/

Verification

  • homeboy review lint extrachill-users --path /var/lib/datamachine/workspace/extrachill-users@chore-266-release-lint --placement local --summary - passed with zero PHPCS, ESLint, or PHPStan findings (run 22db41b8-096c-4541-b743-bc5c19456483)
  • npm run build - passed for all five block entries
  • npm run test:unit:js -- --runInBand - passed, 3 tests
  • git diff --check - passed
  • homeboy review test extrachill-users --path /var/lib/datamachine/workspace/extrachill-users@chore-266-release-lint --placement local --json-summary - 215 passed, 10 skipped, 119 failed because the Codebox fixture does not provision wp_datamachine_event_dates; tracked separately by test: provision event dates table in WP Codebox suite #267
  • composer test - exits 2 because the repository has no PHPUnit configuration/bootstrap; direct vendor/bin/phpunit tests/unit likewise cannot load WP_UnitTestCase, so Homeboy remains the supported WordPress test runner

Closes #266

@chubes4
chubes4 merged commit 68e1b7c into main Jul 24, 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.

chore: clear full-component lint debt blocking releases

1 participant