Commit 1dd86bd
committed
refactor: harden type-set dependency targets after second review
- DependsOnlyOn/DependOnlyOn/WhichDependOnlyOn with Filtered.Types targets
return new only-on results exposing ExcludingOwnSubNamespaces, mirroring
the namespace family (the own-sub-namespace exemption was hard-coded)
- TypeSetDependencyOptions.Resolve returns a ResolvedTypeSet that performs
all matching, so matching against an unresolved target set is
unrepresentable; the assertion CancellationToken is forwarded
- share the constructed-generic matching rule between MatchesType and the
type-set matcher via TypeHelpers.GetGenericTypeDefinitionOfConstruction
- parenthesize the target description in the type-set filter suffixes, so
the target scope no longer runs into the subject collection scope
- drop a provably dead Distinct() in GetDependencyTypeSetViolations
- make all WhichDependOn/WhichDoNotDependOn/DependOn/DoNotDependOn
overloads adjacent (Sonar S4136)
- README: promote type dependencies and architecture rules into their own
top-level section and avoid em-dashes1 parent 754ab14 commit 1dd86bd
18 files changed
Lines changed: 672 additions & 363 deletions
File tree
- Source/aweXpect.Reflection
- Collections
- Filters
- Helpers
- Options
- Results
- Tests
- aweXpect.Reflection.Api.Tests/Expected
- aweXpect.Reflection.Tests
- Filters
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
580 | 631 | | |
581 | 632 | | |
Lines changed: 21 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 21 | | |
33 | 22 | | |
34 | 23 | | |
| |||
44 | 33 | | |
45 | 34 | | |
46 | 35 | | |
47 | | - | |
48 | | - | |
| 36 | + | |
| 37 | + | |
49 | 38 | | |
50 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
67 | | - | |
68 | | - | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
57 | | - | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
| 776 | + | |
| 777 | + | |
784 | 778 | | |
785 | 779 | | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
786 | 794 | | |
787 | 795 | | |
788 | 796 | | |
| |||
959 | 967 | | |
960 | 968 | | |
961 | 969 | | |
962 | | - | |
963 | 970 | | |
964 | 971 | | |
965 | | - | |
| 972 | + | |
966 | 973 | | |
967 | 974 | | |
968 | 975 | | |
969 | 976 | | |
970 | 977 | | |
971 | | - | |
972 | 978 | | |
973 | 979 | | |
974 | 980 | | |
| |||
996 | 1002 | | |
997 | 1003 | | |
998 | 1004 | | |
999 | | - | |
| 1005 | + | |
1000 | 1006 | | |
1001 | 1007 | | |
1002 | 1008 | | |
1003 | 1009 | | |
1004 | 1010 | | |
1005 | | - | |
1006 | | - | |
| 1011 | + | |
| 1012 | + | |
1007 | 1013 | | |
1008 | 1014 | | |
1009 | 1015 | | |
| |||
0 commit comments