I'd like to enforce a rule that log statements do not use string interpolation:
Example
Log($"Added {count} messages.");
Instead I want to encourage/force developers to use structured logging, which means passing values in as separate arguments to a Log method that supports this concept.
How would one use NDepend to do this, assuming it's possible? If not NDepend, can it be done with a Roslyn analyzer?