SonarRuby detects bugs, vulnerabilities and code smells in Ruby code.
Additionally, coverage reports generated with SimpleCov can be imported. Users of Rubocop can also optionally import its findings in SonarQube .
Run your analysis with the SonarQube Scanner by executing the following command from the root directory of the project:
sonar-scanner -Dsonar.projectKey=xxx -Dsonar.sources=.
Assuming steps 1-3 above have already been completed, you'll want to encapsulate your analysis parameters in a sonar-project.properties file at the root of your project (see a sample project on GitHub: https://github.com/SonarSource/sonar-scanning-examples/tree/master/sonarqube-scanner). Then subsequent analyses can simply be run with:
With SonarRuby, you can also: