Today, we are excited to announce that the DeepSource Ruby analyzer is out of beta. Apart from increased stability, the analyzer now detects over 260 issues, from around 170 when it was released in beta.
And the best part, you can use DeepSource to fix over 70 different issues automatically using Autofix, or to transform your whole codebase using Transformers.
To start analyzing your Ruby code, just enable the
ruby analyzer in your
.deepsource.toml file, and you are good to go.
version = 1 test_patterns = [ "test/**", "*_test.rb" ] exclude_patterns = [ "vendor/**", "**/examples/**" ] [[analyzers]] name = "ruby" enabled = true
Over 70 issues can be autofixed using the DeepSource Ruby Autofix. Look for the Autofix badge in the
You can also use the available Ruby Transformers to automatically transform your codebase. We currently support both StandardRB and RuboCop.
version = 1 test_patterns = [ "test/**", "*_test.rb" ] exclude_patterns = [ "vendor/**", "**/examples/**" ] [[analyzers]] name = "ruby" enabled = true [[transformers]] name = "standardrb" enabled = true
We currently support over 260 issues in your Ruby code, across categories like bug risks, anti-patterns, security vulnerabilities, and style issues. Here’s some of them to give you an idea:
unlessbranches without a body detected