Commit 80da844
committed
feat(mvn): add Maven (Java) filter module — test, compile, checkstyle:check, dependency:tree
Adds `rtk mvn` with four filters:
- `mvn test` — state machine parser (Preamble → Testing → Summary → Done)
that accumulates counts across T E S T S sections for multi-module builds
and surefire+failsafe (`mvn verify`).
- `mvn compile` — line filter routed also from `process-classes` /
`test-compile` via a shared `COMPILE_LIKE_GOALS` tuple table.
- `mvn checkstyle:check` — compact violation rewrite with Help-boilerplate strip.
- `mvn dependency:tree` — boilerplate/duplicate strip, transitive collapse.
Auto-detects `./mvnw` wrapper; falls back to system `mvn`. Other goals
(e.g. `spring-boot:run`, `install`) stream through unchanged for safety
with metrics-only tracking. Discover rules rewrite bare `mvn`/`mvnw`
invocations to `rtk mvn`. Replaces the previous TOML filter
`src/filters/mvn-build.toml`.
38 unit tests + 14 real-output fixtures covering pass/fail/multi-module
cases; verify-fixture savings ≥ 90%.1 parent 9e96caa commit 80da844
25 files changed
Lines changed: 3683 additions & 53 deletions
File tree
- src
- cmds
- java
- core
- discover
- filters
- tests/fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| |||
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| 200 | + | |
| 201 | + | |
198 | 202 | | |
199 | 203 | | |
200 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments