While I don't believe in putting numbers on source code quality  SonarQube (formerly known as Sonar) can be a really useful tool during development It enforces a consistent style across your team  has discovered several possible bugs for me and is a great tool to learn: You can browse the violations and see why a certain expression or code block can be a problem