Skip to content

feat(gradle): scaffold module + command wiring + hooks#1

Merged
Nava2 merged 7 commits intomasterfrom
rtk-gradle/scaffold
Mar 16, 2026
Merged

feat(gradle): scaffold module + command wiring + hooks#1
Nava2 merged 7 commits intomasterfrom
rtk-gradle/scaffold

Conversation

@Nava2
Copy link
Collaborator

@Nava2 Nava2 commented Mar 16, 2026

Summary

  • Add src/gradle/ module with TaskType enum and detect_task_type() for auto-detecting gradle task categories (COMPILE, TEST, DETEKT, HEALTH, PROTO, DEPS, GENERIC)
  • Single TaskType::Test matches all test tasks (unit, integration, component, Android) — no separate IntegrationTest variant
  • is_integration_task_name() for integration-specific noise filtering at filter time
  • detect_task_type_from_output() fallback: scans > Task :...: lines when args don't reveal a type (handles meta-tasks like check, build, lint)
  • Wire Commands::Gradle into main.rs with trailing_var_arg support
  • Gradlew detection (walk up parent dirs), --console plain injection
  • Hook integration: add ./gradlew and gradle to discover rules for auto-rewrite
  • Update CLAUDE.md module table and CHANGELOG.md

Stack

scaffold <- global-filters <- compile <- test-filter <- detekt <- batch
                           ├── deps
                           └── health-proto

Test plan

  • Unit tests for TaskType detection, output-based detection, console plain injection
  • cargo fmt --all --check && cargo clippy --all-targets && cargo test --all

🤖 Generated with Claude Code

Nava2 and others added 2 commits March 15, 2026 19:53
…ction

Add src/gradle/ module with TaskType enum, detect_task_type() for auto-detecting
gradle task categories (COMPILE, TEST, DETEKT, HEALTH, PROTO, DEPS, GENERIC),
gradlew detection (prefer ./gradlew, fallback to gradle), and --console plain
injection with deduplication. Wire Commands::Gradle into main.rs with
trailing_var_arg support. Stub files for all submodules (global, compile,
test_filter, detekt, health, proto, deps, batch, paths).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Collaborator Author

Nava2 commented Mar 16, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

Nava2 and others added 2 commits March 16, 2026 06:47
…hooks

- Remove TaskType::IntegrationTest — single Test type matches all test tasks
- Add is_integration_task_name() for integration-specific noise filtering
- Add detect_task_type_from_output() for meta-task fallback (check/build/lint)
- Add Gradle discover rules for hook integration
- Update CLAUDE.md module table and CHANGELOG.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Nava2 Nava2 changed the title feat(gradle): scaffold module + command wiring feat(gradle): scaffold module + command wiring + hooks Mar 16, 2026
Gradle CLI accepts case-insensitive task names. All matches_task functions
now lowercase internally, and detect_task_type lowercases at the call site.
Output-based detection unchanged (task names are properly cased in output).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…_task tests

- Remove all "Full implementation in Commit N" comments (not durable)
- Add matches_task unit tests to detekt, deps, health, proto modules
  (previously only in mod.rs as integration tests)
- Tests include case-insensitive and negative matching

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Nava2 Nava2 merged commit af5205d into master Mar 16, 2026
1 of 2 checks passed
@Nava2 Nava2 mentioned this pull request Mar 16, 2026
3 tasks
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.

1 participant