Reek
Brakeman
Our great sponsors
Reek | Brakeman | |
---|---|---|
4 | 10 | |
3,859 | 6,561 | |
- | - | |
7.4 | 7.1 | |
7 days ago | 5 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
-
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
-
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.
-
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
A while ago, I came across a Brakeman false positive that I wanted to fix.
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)
-
OWASP Top 10 for Developers: Using Components with Known Vulnerabilities
In order to prevent this issue, your organization needs to implement regular checks of your dependencies against the CVE database for known vulnerabilities, as well as establishing a process for keeping all dependencies up-to-date. Fortunately, much of this can be automated using vulnerability scanning tools, such as the OWASP Dependency Check, RetireJS, or Brakeman. Additional tools, such as WhiteSource's Renovate, provide a complete dependency management solution by automatically updating any found vulnerabilities. In addition to keeping dependencies updated, it's important to remove any dependencies that are no longer being used.
-
Rails application boilerplate for fast MVP development
brakeman and bundler-audit as security scanners
-
Consistency Conundrum
As a side note, consider a static security analysis tool like Brakeman to run automatically as part of your build process so that your application is not solely relying on reviewers' eyes to catch critical security implications.
-
26 most popular Ruby/Rails repositories on GitHub in July-August 2020
Brakeman is a static analysis tool that checks Ruby on Rails applications for security vulnerabilities. 5,800 stars by now
What are some alternatives?
bundler-audit - Patch-level verification for Bundler
Rubocop - A Ruby static code analyzer and formatter, based on the community Ruby style guide. [Moved to: https://github.com/rubocop/rubocop]
Metasploit - Metasploit Framework
Rubycritic - A Ruby code quality reporter
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.
Pronto - Quick automated code review of your changes
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.
BeEF - The Browser Exploitation Framework Project
rails_best_practices - a code metric tool for rails projects
dawnscanner - Dawn is a static analysis security scanner for ruby written web applications. It supports Sinatra, Padrino and Ruby on Rails frameworks.