Reek
Coverband
Our great sponsors
- SonarQube - Static code analysis for 29 languages.
- ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
- InfluxDB - Access the most powerful time series database as a service
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Reek
-
Improve Code in Your Ruby Application with RubyCritic
$ reek app/controllers/erp/orders_controller.rb Inspecting 1 file(s): S app/controllers/erp/orders_controller.rb -- 1 warning: [91]:UncommunicativeVariableName: Erp::OrdersController#create has the variable name 'e' [https://github.com/troessner/reek/blob/v6.1.1/docs/Uncommunicative-Variable-Name.md]
-
Gems that can identify churn, complexity, duplication and smells.
reek
-
Security Risks On Rails: Misconfiguration and Unsafe Integrations
Other useful gems you may take a look at are dawnscanner, reek, and hakiri_toolbelt.
-
The best way to review my code for code smells?
Beside RuboCop, I found reek very useful. https://github.com/troessner/reek
Coverband
-
Dead code or unused code removal in ruby on rails.
Try https://github.com/danmayer/coverband
-
Gem for visualizing executed code
Interesting idea! Not the same thing, but it reminded me quite a bit of Coverband
-
How to Improve Code Quality on a Ruby on Rails Application
Find dead code with Coverband, which can be run in production.
-
Ruby's Got You Covered
There are many tools for measuring test coverage, but one is SimpleCov. It also supports branches coverage. To measure coverage of production code, check out Coverband, which you can set up to use oneshot lines mode.
-
Top 8 Tools for Ruby on Rails Code Optimization and Cleanup.
I'd add Coverband. Also, since you mention rack-mini-profiler, quick plug for rails-mini-profiler, which is my own spin on performance profiling for rails apps. Still WIP though.
What are some alternatives?
Rubocop - A Ruby static code analyzer and formatter, based on the community Ruby style guide. [Moved to: https://github.com/rubocop/rubocop]
SimpleCov - Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites
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.
Rubycritic - A Ruby code quality reporter
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.
rails_best_practices - a code metric tool for rails projects
Brakeman - A static analysis security vulnerability scanner for Ruby on Rails applications
Scientist - :microscope: A Ruby library for carefully refactoring critical paths.
MetricFu - A fist full of code metrics
bundler-leak - Known-leaky gems verification for bundler: `bundle leak` to check your app and find leaky gems in your Gemfile :gem::droplet:
Traceroute - A Rake task gem that helps you find the unused routes and controller actions for your Rails 3+ app