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. (by seattlerb)
Rubocop
A Ruby static code analyzer and formatter, based on the community Ruby style guide. [Moved to: https://github.com/rubocop/rubocop] (by rubocop-hq)
Flog | Rubocop | |
---|---|---|
8 | 7 | |
940 | 11,323 | |
0.7% | - | |
5.5 | 9.8 | |
over 1 year ago | almost 4 years ago | |
Ruby | Ruby | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
Flog
Posts with mentions or reviews of Flog.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-16.
-
Practical approach to software complexity
Taking actual measurements is pretty easy and usually limited to execution of a single command. In ruby universe that would be flog.
- The flog gem reports the most tortured code in an easy to read pain report
-
Flog-Driven Development
You point flog to a file, or directory, and it provides you with a score. The higher the score, the more attention you might want to pay to it. As for how flog calculates the number, I'll let flog summarize itself again:
-
Improve Code in Your Ruby Application with RubyCritic
Flog checks how difficult your code is to test. It sets a complexity score for each line of code and sums up the score for each method and class.
-
Gems that can identify churn, complexity, duplication and smells.
flog
- Code Red: The Business Impact of Code Quality
Rubocop
Posts with mentions or reviews of Rubocop.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-06-28.
-
What’s your day to day development env set up?
Parenthesis are mostly optional in Ruby, Seattle style takes it to an extreme where you omit any character not required for the code to run. https://github.com/rubocop-hq/rubocop/issues/4793
- Mais de 10 coisas para fazer antes de solicitar revisão do seu Pull Request
-
RuboCop Turns 10
No, it's not?! The latest version is 1.28.2: https://rubygems.org/gems/rubocop
- what ruby or rails open source projects a beginner-to-intermediate developer can easily contribute to?
-
Refactoring in Ruby
Running rubocop might give you a few tips regarding naming conventions and best practices
-
Beginner's guide to JavaScript static code analysis
Every language that I’ve ever worked in has a linter written for it. JavaScript has ESLint; Python has Black, and Ruby has RuboCop. These linters do the simple job of making sure your code follows the prescribed set of style rules. A few linters like RuboCop also enforce good practices such as atomic functions and better variable names. Such hints are very often helpful in detecting and fixing bugs before they cause issues in production.
-
Racism is no more...
It's like rubocop problem: https://github.com/rubocop-hq/rubocop/issues/8091
What are some alternatives?
When comparing Flog and Rubocop you can also consider the following 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.
Rubycritic - A Ruby code quality reporter
Pronto - Quick automated code review of your changes
Brakeman - A static analysis security vulnerability scanner for Ruby on Rails applications
Reek - Code smell detector for Ruby
Pippi - pippi
rails_best_practices - a code metric tool for rails projects
MetricFu - A fist full of code metrics
SimpleCov - Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites