rubyfmt
Ruby Autoformatter! (by fables-tales)
standard
Ruby's bikeshed-proof linter and formatter 🚲 (by standardrb)
rubyfmt | standard | |
---|---|---|
5 | 18 | |
1,058 | 2,606 | |
- | 1.0% | |
6.5 | 8.0 | |
3 months ago | 5 days ago | |
Rust | Ruby | |
MIT License | GNU General Public License v3.0 or later |
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.
rubyfmt
Posts with mentions or reviews of rubyfmt.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-06.
-
Are you using rubocop-airbnb?
We're using rubyfmt along with a rubocop config which does its best to strip out any styling decisions.
-
Ruby on Rails Auto Formatter
Looked at https://github.com/penelopezone/rubyfmt and other options but none seem to actually work.
-
Linting and Auto-formatting Ruby Code With RuboCop
RubyFmt is a brand-new code formatter that's written in Rust and currently under active development. Like Prettier, it is intended to be a formatter and not a code analysis tool. It hasn't seen a stable release just yet, so you should probably hold off on adopting it right now, but it's definitely one to keep an eye on.
-
I look for a "Rosetta" documentation to found correspondence between languages tooling
Another example: code formatters. You mention gofmt (which you incorrectly put next to Ruby even though it's for Go)... There are lots of code formatters for Ruby, even if you only consider ones directly inspired/influenced by gofmt. A quick google turned up at least three of those: https://github.com/pariz/rubo-format, https://github.com/penelopezone/rubyfmt, and https://github.com/ruby-formatter/rufo. I'm pretty sure rubocop is used in Ruby more than any of those, but rubocop is less directly influenced by gofmt. So what do you choose? The project(s) that's more closely analogous? Or the more popular formatter?
- Penelopezone/Rubyfmt: Ruby Autoformatter
standard
Posts with mentions or reviews of standard.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-02-02.
-
Am I the only one who doesn't put parentheses around the parameters in Ruby method definitions?
Rubocop has a default rule that says to put parentheses when there are parameters; even Standardrb has a default ([https://github.com/standardrb/standard/blob/8307fa8f449f896075ccad 74bf6a128ed2c26189/config/base.yml#L1098:title])
- Standardrb: Ruby's bikeshed-proof linter and formatter
-
Must-have gems for mature Rails
gem "rubocop" - https://github.com/rubocop/rubocop | Set up code guidelines for your dev team, I recommend using whatever Standard recommends.
-
A Writer's Ruby
Cynically, reading heavily between the lines, this reads to me like DHH just found out lots of rubyists like standardrb. https://github.com/standardrb/standard -- and this is his quick reaction to it.
-
"Useless Ruby sugar": Endless (one-line) methods
This is a huge reason why I still use StandardJS and—shifting back to Ruby—why I rejected the countless requests for implementing line-length or any other metrics analysis rules for [StandardRB](https://github.com/standardrb/standard). There is always a legitimate edge case when it comes to length of lines and functions and the alternative—chopping them off arbitrarily—is rarely an improvement.
-
An Introduction to RuboCop for Ruby on Rails
This approach is known as Standard Ruby. It can also be completed with plugins, including one for Ruby on Rails projects.
-
It's Official: the Standard Ruby VS Code extension
Oh, this is fantastic! Would you be willing to send a quick PR to our README?
-
Rails vs Rubocop?
[0] https://github.com/testdouble/standard
-
Linting and Auto-formatting Ruby Code With RuboCop
If you don't want to fiddle with configuration files and the wealth of options provided by RuboCop, consider taking a look at the Standard project. It's largely a pre-configured version of RuboCop that aims to enforce a consistent style in your Ruby project without allowing the customization of any of its rules. The lightning talk where it was first announced gives more details about its origin and motivations.
- Utilizando o padrĂŁo interactor no Ruby on Rails
What are some alternatives?
When comparing rubyfmt and standard you can also consider the following projects:
rufo - The Ruby Formatter
Ruby style guide - A community-driven Ruby coding style guide
coc-solargraph - Solargraph extension for coc.nvim
eslint-config-standard - ESLint Config for JavaScript Standard Style
rubo-format - gofmt like ruby code formatting in atom
rubocop-rspec - Code style checking for RSpec files
plugin-ruby - Prettier Ruby Plugin
ansi-strikethrough - The color strikethrough, in ansi.
go-formatter - A curated list of awesome Go frameworks, libraries and software
rubocop-rails - A RuboCop extension focused on enforcing Rails best practices and coding conventions.
prettier - Prettier is an opinionated code formatter.
Hanami::Model - Ruby persistence framework with entities and repositories
rubyfmt vs rufo
standard vs Ruby style guide
rubyfmt vs coc-solargraph
standard vs eslint-config-standard
rubyfmt vs rubo-format
standard vs rubocop-rspec
rubyfmt vs plugin-ruby
standard vs ansi-strikethrough
rubyfmt vs go-formatter
standard vs rubocop-rails
rubyfmt vs prettier
standard vs Hanami::Model