Product SiteDocumentation Site

1.1. Code quality metrics

Security is just one aspect of code quality along with reliability, correctness and others. These metrics overlap a lot, for example denial of service can be seen as both security and reliability issue. Therefore improvement in any of these areas is likely to affect others.
Increasing code quality by reducing complexity, duplication of code and mainaining good readability is a good first step towards security. All other things being equal, more complex code will have more weaknesses than simpler one.
Several gems can help with improving code quality:
These are just few examples and actual setup may vary from project to project. However, they help developers keep code complexity low in an automated fashion and can be easily integrated into workflow.