It would be nice to have such tool for D.
I found very interesting tool for .NET
https://stylecopplus.codeplex.com/#MoreCustomRules
- StyleCop for D Suliman via Digitalmars-d
- Re: StyleCop for D Adam D. Ruppe via Digitalmars-d