Closed ovation22 closed 1 year ago
That kind of rules you usually enforce through Roslyn analyzers. It is not architecture, and this library is used for testing architecture.
Ok, thanks for the quick reply.
Hello @ovation22, I wonder if you find a good library or roslyn analyzer that matches your needs.
Is it possible to determine if string interpolation is being used in a method?
I would like to enforce the use of params object?[] args instead of string interpolation (for performance reasons).
Contrived example:
Preferred usage:
_logger.LogInformation("Got here {0} {1} {2}", var0, var1, var2);
I would like to write a test to prevent this:
_logger.LogInformation($"Got here {var0} {var1} {var2}");