Recently, my Co-Worker Daniel and I were allowed to present our way of ensuring code-quality using Sonar and custom Sitecore FxCop rules at the first Swiss Sitecore User Group.
Our solution is based on the shared source module of Johannes Zijlstra to which we now were allowed to contribute our changes. Thanks for that!
If you want to learn more about how to use custom FxCop rules for Sitecore, check out:
The source code can be found on BitBucket: