SonarSource provides a static code analyzer for Ruby. Based on our own Ruby analyzer, it can find bugs, security vulnerabilities and code smells. As for any product we develop at SonarSource, it was built on the following principles: depth, accuracy and speed.

SonarRuby has great coverage of well-established quality standards. Its capabilities are available throughout the development chain for automated code review with self-hosted SonarQube or on-line SonarCloud.

Samples of Issues Detected
Merge nested 'if' Merge nested 'if' Merge nested 'if'
Improve readability Improve readability Improve readability
Duplicated literal Duplicated literal Duplicated literal

SonarRuby supports all the standard metrics implemented by SonarQube including Cognitive Complexity.

Free & Open Source


Issue Tracker

Use in community edition

See all editions