Skip to content

Add a CLAUDE.md file - #141

Closed
gravitypdf-bot wants to merge 1 commit into
mainfrom
docs/claude-md
Closed

gravitypdf-bot wants to merge 1 commit into
mainfrom
docs/claude-md

Conversation

@gravitypdf-bot

Copy link
Copy Markdown
Contributor

Adds a CLAUDE.md at the repo root: a short guide for Claude Code sessions working in this repository.

It covers:

  • Commands. PHPUnit (the full suite, a single test or file, coverage) and the lint, lint:fix and lint:min-php Composer scripts. It notes that the Makefile targets are stale.
  • Constraints. PHP 7.1–8.5 compatibility (no typed properties, arrow functions, match, union types or constructor promotion), tab indentation, tests extending QueryPathTests\TestCase with the yoast polyfill method names, output buffering under beStrictAboutOutputDuringTests, and the CHANGELOG-plus-test expectation from CONTRIBUTING.md.
  • Architecture. The qp()/htmlqp()/html5qp() entry points, the DOM/DOMQuery split across the src/Helpers/ traits, and the inst() chaining semantics. It also covers the extension registry and the other pieces of src/.
  • The selector engine as it stands after Select with DOMTraverser in remove() and replaceAll() #127–Return traversal results in jQuery's order #130. DOMTraverser is the only engine in use. find() searches descendants; DOMTraverser::filterNodes(), wrapped by Helpers\NodeMatcher, tests the nodes in hand. The legacy QueryPathEventHandler is deprecated and no longer called. The sibling and ancestor traversals go through walk() and are put in jQuery's order.

Documentation only: no code or test changes, and no CHANGELOG entry.

🤖 Generated with Claude Code

@codecov

codecov Bot commented Oct 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.14%. Comparing base (6ae6acf) to head (a28ad9f).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #141      +/-   ##
============================================
+ Coverage     90.69%   91.14%   +0.44%     
- Complexity     1424     1434      +10     
============================================
  Files            25       26       +1     
  Lines          3170     3172       +2     
============================================
+ Hits           2875     2891      +16     
+ Misses          295      281      -14     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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