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.
SonarRuby supports all the standard metrics implemented by SonarQube including Cognitive Complexity.