plugin-ruby
standard
plugin-ruby | standard | |
---|---|---|
7 | 18 | |
1,446 | 2,596 | |
0.8% | 0.7% | |
8.2 | 8.0 | |
13 days ago | 9 days ago | |
JavaScript | Ruby | |
MIT License | GNU General Public License v3.0 or later |
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.
plugin-ruby
- Unveiling the big leap in Ruby 3.3's IRB
- Rails vs Rubocop?
-
Linting and Auto-formatting Ruby Code With RuboCop
Prettier started out as an opinionated code formatter for JavaScript, but it now supports many other languages, including Ruby. Installing its Ruby plugin is straight forward: add the prettier gem to your Gemfile and then run bundle.
-
Halp: Prettier not working on lua files
You'd need a prettier plugin for Lua, similar to the ones that exist for php (https://github.com/prettier/plugin-php) and ruby (https://github.com/prettier/plugin-ruby). I'm pretty sure that there isn't one for Lua, but you can try googling it.
-
Formatter
Did you try prettier maybe?
-
Standard Ruby 1.0
To me "stardard" ruby style is style used in the std-lib.
Whilst I can see the benefit of having an AST format code for you, e.g. if can you use it to fix language version changes like positional arguments and keyword arguments in Ruby 3,.0 I worry about how good/bad RuboCop is at formatting.
Last time I tried it, it was indenting in a different way to the std-lib.
At the time I found that prettier-ruby[1] did a much better job. Hopefully that's improved since.
1. https://github.com/prettier/plugin-ruby
-
My Rubocop Configuration for a Successful Rails Project
Rubocop has a very nice auto-correct feature to automatically fix many of the warnings it gives, but we've noticed in the past that with line length issues specifically the auto-corrected files can be misformatted. For that reason, we use the Ruby plugin for Prettier to correct line length.
standard
-
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?
vim-prettier - A Vim plugin for Prettier
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
prettier-plugin-solidity - A Prettier plugin for automatically formatting your Solidity code.
rubocop-rspec - Code style checking for RSpec files
prettier-plugin-prisma - Prettier plugin for Prisma
ansi-strikethrough - The color strikethrough, in ansi.
prettier - Prettier is an opinionated code formatter.
rubocop-rails - A RuboCop extension focused on enforcing Rails best practices and coding conventions.
prettier-eslint - Code :arrow_right: prettier :arrow_right: eslint --fix :arrow_right: Formatted Code :sparkles:
Hanami::Model - Ruby persistence framework with entities and repositories