csnemes / tracer

Tracing rewriter using Fody
Apache License 2.0
93 stars 26 forks source link

Feature request: NoTrace specific method name across many namespaces #70

Closed gautelo closed 5 years ago

gautelo commented 5 years ago

I find myself putting a lot of [NoTrace] on GetHashCode and Equals overrides. Would it be possible to add support for blocking all methods of a certain short Name through FodyWeavers.xml? I'm thinking something like this:

<!--Globally block a method -->
<NoTrace method="GetHashCode" />

<!--Selectively block a method -->
<NoTrace namespace="MyOrg.Parts+*" method="Equals" />
csnemes commented 5 years ago

I'm planning to create a more complex flitering mechanism than what we have today. I hope it'll be ready by the end of December/early January. It will cover your scenario too.

gautelo commented 5 years ago

@csnemes Sweet. Looking forward to seing what it will look like.