feat(gradle): scaffold module + command wiring + hooks#1
Merged
Conversation
…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>
Nava2
commented
Mar 16, 2026
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Mar 16, 2026
…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>
This was referenced Mar 16, 2026
Nava2
commented
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>
Nava2
commented
Mar 16, 2026
…_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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
src/gradle/module withTaskTypeenum anddetect_task_type()for auto-detecting gradle task categories (COMPILE, TEST, DETEKT, HEALTH, PROTO, DEPS, GENERIC)TaskType::Testmatches all test tasks (unit, integration, component, Android) — no separate IntegrationTest variantis_integration_task_name()for integration-specific noise filtering at filter timedetect_task_type_from_output()fallback: scans> Task :...:lines when args don't reveal a type (handles meta-tasks likecheck,build,lint)Commands::Gradleinto main.rs withtrailing_var_argsupport--console plaininjection./gradlewandgradleto discover rules for auto-rewriteStack
Test plan
cargo fmt --all --check && cargo clippy --all-targets && cargo test --all🤖 Generated with Claude Code