We strongly believe code quality improvement is a team's everyday job.
To help you do this job well, there are a TeamCity plugins for popular IDEs. For example, TeamCity IntelliJ IDEA plugin can automatlcally download fresh inspection results, duplicated code results and code coverage from the TeamCity server. These results are then shown right in the editor where we modify our code. TeamCity plugins for Visual Studio and Eclipse can show code coverage from server as well.
Not sure whether it is safe to modify these lines of code in a class? Take a look at the coverage.
Seeing duplicated or dead code in the editor? Eliminate it right away!
Each code quality report provides metrics which can be used in build failure conditions.
To avoid degradation of some metrics over time, build failure condition can be configured to fail a build if its quality metrics decreased compared to a previously finished build, or compared to some build selected as the benchmark.