Skip to content

Add PHP and Dart equivalents for the quality-gate tools - #11

Open
oleksandr-roskovynskyi wants to merge 1 commit into
unclebob:masterfrom
oleksandr-roskovynskyi:php-dart-tools
Open

oleksandr-roskovynskyi wants to merge 1 commit into
unclebob:masterfrom
oleksandr-roskovynskyi:php-dart-tools

Conversation

@oleksandr-roskovynskyi

Copy link
Copy Markdown

crapper, dryer, and mutator do not read PHP or Dart, so in those projects the Crapper, Dryer, and Mutator steps have nothing to run. This adds one short section to SKILL.md that names a tool for each gate and keeps the same thresholds.

Gate PHP Dart
CRAP PHPUnit / Pest --coverage-crap4j crap4dart
Duplication jscpd --format php jscpd --format dart
Mutation pest --mutate, or Infection mutation_test

Notes:

  • jscpd matches copied tokens, not similar structure, so it finds less than dryer. The section says so.
  • The flags were checked against phpunit --help and pest --help (Pest 5), and against the READMEs of crap4dart, mutation_test, and jscpd. I did not run crap4dart or mutation_test end to end.
  • Only SKILL.md changes. The new section sits after Mutator and does not touch the lines changed in fix: clean up SKILL.md typos and heading alignment (#3) #9.

🤖 Generated with Claude Code

crapper, dryer, and mutator cover Clojure, Java, Go, TypeScript, Rust,
and Python. In PHP and Dart projects the Crapper, Dryer, and Mutator
steps had no tool to run, so the agent skipped them.

The new section names a tool for each gate in each language and keeps
the same thresholds (CRAP < 10).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mathieurousseau

Copy link
Copy Markdown

I'd rather have:
unclebob/crapper#13
unclebob/dryer#8
unclebob/mutator#11

merged in :)

@mathieurousseau

Copy link
Copy Markdown

Actually I have opened new PRs with conflicts with main fixed:
unclebob/crapper#55
unclebob/dryer#33
unclebob/mutator#52

I also have opened PR against @MaurizioSodano's PRs too.

@MaurizioSodano

Copy link
Copy Markdown

Thank you @mathieurousseau for pointing this out, and for the Dart work and the upstream sync on my branches. Your PRs against our fork are merged, so my three Dart PRs no longer conflict with upstream and are mergeable again:

Your commits are in their history. I also left a note on your PRs #55, #33 and #52 so we do not keep two open PRs for the same change.

Once the Dart support is merged, crapper, dryer and mutator read Dart directly, and the Dart part of this PR becomes redundant. The PHP part is unaffected.

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.

3 participants