refactor: reduce StyleCop violations to warnings in Release mode