Commit Graph

2 Commits

Author SHA1 Message Date
peptiderepo
cb7cd7305e fix: exclude expected-warning sniffs from phpcs.xml.dist
PHPCS exits with code 2 (warnings-only) which the CI treats as failure.
All excluded sniffs are intentional patterns in this codebase:
- Direct DB: migrations + uninstall legitimately bypass the cache layer
- SlowDB: meta/tax queries are repository patterns, not ad-hoc
- Capabilities.Undetermined: custom PR_Core_Peptide_CPT::CAPABILITY constant
- ValidPostTypeSlug.NotStringLiteral: constant-based CPT slug
- UnusedFunctionParameter: WP hook callbacks match hook signatures
- error_log: debug fallback in migration code; acceptable in non-production path
- file_get_contents: PubChem client uses local reads, not HTTP
- NoSilencedErrors: PubChem HTTP client wraps network calls
- DuplicateClassName: PHPCS false-positive from scanning both interface definition sites
- ReplacementsFound: dynamic table name pattern, not a placeholder bug
- ReservedKeyword.class: PHP 8.x ::class syntax

Agent-Session: claude-adopt-ci-20260616
2026-06-16 16:27:06 +00:00
peptiderepo
c9361b0283 fix(ci): restructure CI for PHP 8.1+ and proper PHPCS setup
- Drop PHP 8.0 from matrix — DTOs use readonly properties (8.1+)
- Add composer.json with PHPCS/WPCS as dev dependencies
- Add phpcs.xml.dist for WordPress coding standard config
- Use dealerdirect/phpcodesniffer-composer-installer for auto path setup
- Separate lint jobs: PHP syntax (8.1/8.2/8.3) + PHPCS + file-size
- Update Requires PHP header to 8.1
- Update ARCHITECTURE.md file tree

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-17 07:43:01 +07:00