deptrac
deptrac copied to clipboard
Collector for excluding the layer in which it is specified.
I apologize if there's already a topic like this; I've seen something similar before, but none of the options suited me because I'm using deptrac-shim.
Here's the issue: I need a collector that would allow a layer to exclude itself. For example, there are classes called 'Tasks,' and they allow implementing logic that cannot include other classes of the same type ('Tasks'). At the moment, it doesn't seem possible to describe such logic in YAML. I've seen that this can be done programmatically through ProcessEvent, but I can't do it because I'm using deptrac-shim, and it doesn't have Contracts. As far as I can judge, this is a quite common case among developers.