Commit e901829
fix: pass project root to ServiceDetector so filesystem walk runs during enrich
EnrichCommand called the 3-arg overload of ServiceDetector.detect(), which
set projectRoot=null and skipped the filesystem walk entirely. Multi-module
projects (e.g. .NET eShop with 20+ .csproj files) only received the single
root-fallback SERVICE node because their build files were never parsed into
CodeNodes by any detector.
Passing `root` as the 4th argument enables the filesystem scan, so all
modules are discovered regardless of whether a detector created a node for
their build file.
Added ServiceDetectorTest#filesystemWalkFindsModulesNotPresentAsNodes to
verify this path with a simulated .NET monorepo (3 .csproj files, no
matching CodeNodes).
Co-Authored-By: Paperclip <noreply@paperclip.ing>1 parent d963ab0 commit e901829
2 files changed
Lines changed: 33 additions & 1 deletion
File tree
- src
- main/java/io/github/randomcodespace/iq/cli
- test/java/io/github/randomcodespace/iq/analyzer
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
526 | 558 | | |
527 | 559 | | |
528 | 560 | | |
| |||
0 commit comments