Reek
Brakeman
Our great sponsors
Reek | Brakeman | |
---|---|---|
6 | 16 | |
3,976 | 6,906 | |
- | - | |
8.0 | 8.1 | |
15 days ago | 6 days ago | |
Ruby | Ruby | |
MIT License | Q Public License 1.0 |
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
-
First commits in a Ruby on Rails app
Rubycritic uses reek under the hood so I added a reek config files at .reek.yml with the following content:
-
Code Reviewing a Ruby on Rails application.
Reek is a code smell detection tool for Ruby that helps identify potential design issues. It analyzes your codebase and provides feedback on areas that might benefit from refactoring or improvement. Here's an overview of what Reek is and how to use it:
-
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
Brakeman
-
First commits in a Ruby on Rails app
Brakeman - “Brakeman detects security vulnerabilities in Ruby on Rails applications via static analysis”
-
[Tool] An alternative to Brakeman for Security
My team and I released Bearer a couple of weeks ago, a newer open and free alternative to Brakeman to check your code for security and privacy risks. In addition to Ruby/Rails, we also cover your JS/TS code, which allows you to use a single solution for your whole Rails application.
-
Brakeman VS bearer - a user suggested alternative
2 projects | 10 Jul 2023
-
Code Reviewing a Ruby on Rails application.
Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications. It finds potential security issues in Rails applications by examining the Ruby code. Brakeman helps find and fix security holes before deploying your Rails app.
-
4 Essential Security Tools To Level Up Your Rails Security
brakeman is another useful Ruby gem that is a static analysis security vulnerability scanner for Ruby on Rails applications.
-
How do you guys integrate automated security checks in your CI/CD pipelines?
You might find brakeman interesting: https://brakemanscanner.org
-
Github Pre-commit Hook Setup In Ruby On Rails for maintaining coding standards and productive.
It’s assumed that you already have a Rails app and use Brakeman to keep your app secure and Rspec to run your test cases.
- Is this query vulnerable to SQL injections?
-
Security Risks On Rails: Misconfiguration and Unsafe Integrations
Another great lib for this is Brakeman, which can be installed in a very similar process and gives you even more detailed reports:
-
Fixing Just One False Positive in Brakeman
This is pretty easy to handle. In the case where a splatted array is the only argument to a method, we'll simply use the elements of the array as the argument list. (Check out the pull request here)
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]
bundler-audit - Patch-level verification for Bundler
rails_best_practices - a code metric tool for rails projects
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.
Metasploit - Metasploit Framework
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.
Pronto - Quick automated code review of your changes
Coverband - Ruby production code coverage collection and reporting (line of code usage)
BeEF - The Browser Exploitation Framework Project