refactor: treat StyleCop violations as warnings in Release builds

fixes #262