Commit 01146fc
Fix merged filter patterns being discarded during per-folder config init (#17)
In load_for_directory and merge_with, merged patterns were passed via
legacy exclude/include fields, but __post_init__ overwrites those from
mode-specific lists (which were empty). This caused .git/, node_modules/
and other excluded paths to be indexed for any directory with a
.cosmaconfig. Populate the correct mode-specific fields instead so
_sync_legacy_fields preserves merged patterns.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent a8faf13 commit 01146fc
File tree
1 file changed
+30
-12
lines changed- packages/cosma-backend/src/cosma_backend/filter
1 file changed
+30
-12
lines changedLines changed: 30 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
596 | 605 | | |
597 | 606 | | |
598 | 607 | | |
| |||
626 | 635 | | |
627 | 636 | | |
628 | 637 | | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
635 | 653 | | |
636 | 654 | | |
637 | 655 | | |
| |||
0 commit comments