Top 18 Ruby Code Analysis and Metric Projects
-
Github scientist.
-
SimpleCov
Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites
Ensure that you have sufficient test coverage. You can use code coverage analysis tools like SimpleCov to gain insight into gaps in your coverage.
-
SonarLint
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
-
add rails_best_practices
-
Project mention: Security Risks On Rails: Misconfiguration and Unsafe Integrations | dev.to | 2022-01-26
Other useful gems you may take a look at are dawnscanner, reek, and hakiri_toolbelt.
-
Project mention: Best services and/or gems for automated generation of documentation, unit tests, and useful things of this nature | reddit.com/r/ruby | 2022-01-16
It's also possible to write unit tests in order to better understand or surface your assumptions about a legacy application. I'd also consider running rubycritic against legacy code, to see where the code smells and other hot spots lie.
-
add pronto
-
Interesting idea! Not the same thing, but it reminded me quite a bit of Coverband
-
Scout APM
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
-
fasterer for performance optimization
-
-
Project mention: Suture: A Ruby gem that helps you refactor your legacy code | reddit.com/r/patient_hackernews | 2021-09-05
-
-
Traceroute
A Rake task gem that helps you find the unused routes and controller actions for your Rails 3+ app
add traceroute
-
Flog
Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in.
-
Flay
Flay analyzes code for structural similarities. Differences in literal values, variable, class, method names, whitespace, programming style, braces vs do/end, etc are all ignored.
-
Nice one! You could also take a look at the undercover gem for nicely formatted GitHub Checks (it's my open source CLI also available as a GitHub app)
-
-
-
bundler-leak
Known-leaky gems verification for bundler: `bundle leak` to check your app and find leaky gems in your Gemfile :gem::droplet:
Ruby Code Analysis and Metrics related posts
- In Pursuit of Perfect Code Coverage Reporting
- How can I benchmark my application for Pagy vs Kaminari?
- Paying Down Technical Debt
- Best services and/or gems for automated generation of documentation, unit tests, and useful things of this nature
- Gem for visualizing executed code
- How to test all workers in one big loop?
- How to Improve Code Quality on a Ruby on Rails Application
Index
What are some of the best open-source Code Analysis and Metric projects in Ruby? This list will help you:
Project | Stars | |
---|---|---|
1 | Scientist | 6,507 |
2 | SimpleCov | 4,425 |
3 | rails_best_practices | 4,011 |
4 | Reek | 3,757 |
5 | Rubycritic | 2,880 |
6 | Pronto | 2,475 |
7 | Coverband | 2,019 |
8 | Fasterer | 1,554 |
9 | Barkeep | 1,431 |
10 | suture | 1,381 |
11 | Cane | 1,328 |
12 | Traceroute | 828 |
13 | Flog | 767 |
14 | Flay | 657 |
15 | undercover | 608 |
16 | MetricFu | 603 |
17 | Pippi | 287 |
18 | bundler-leak | 244 |
Are you hiring? Post a new remote job listing for free.