rails/rubocop-rails-omakase
Fork: 17 Star: 452 (更新于 2024-11-28 07:20:12)
license: 暂无
Language: Ruby .
Omakase Ruby styling for Rails
最后发布版本: v1.0.0 ( 2023-12-29 23:10:14)
Omakase Ruby styling for Rails
Ruby is a beautifully expressive language that not only tolerates many different dialects, but celebrates their diversity. It was never meant as a language to be written exclusively in a single style across all libraries, frameworks, or applications. If you or your team has developed a particular house style that brings you joy, you should cherish that.
This collection of RuboCop styles is for those who haven't committed to any specific dialect already. Who would just like to have a reasonable starting point, and who will benefit from some default rules to at least start a consistent approach to Ruby styling.
These specific rules aren't right or wrong, but merely represent the idiosyncratic aesthetic sensibilities of Rails' creator. Use them whole, use them as a starting point, use them as inspiration, or however you see fit.
Installation
This omakase style is automatically included with new Rails 7.2 applications. But if you're running an earlier version, you can easily add them yourself.
First add this to your Gemfile:
gem "rubocop-rails-omakase", require: false, group: [ :development ]
Then run bundle
, then bundle binstubs rubocop
.
Then add a default .rubocop.yml
file in the root of your application with:
# Omakase Ruby styling for Rails
inherit_gem:
rubocop-rails-omakase: rubocop.yml
# Your own specialized rules go here
Now you can run ./bin/rubocop
to check for compliance and ./bin/rubocop -a
to automatically fix violations.
Contributing
These omakase styles are not intended as an invitation to bikeshed code style preferences. If you disagree with some of the rules incorporated here, you should specialize them in your own application. If you disagree with most of the rules, you should just create your own style guide from scratch.
The only type of contributions that will be considered is those pertaining to bugs or obvious inconsistencies that remain in the spirit of the omakase collection.
License
This gem is released under the MIT License.
最近版本更新:(数据更新于 2024-09-27 18:24:46)
2023-12-29 23:10:14 v1.0.0
rails/rubocop-rails-omakase同语言 Ruby最近更新仓库
2024-11-11 23:51:28 docusealco/docuseal
2024-10-25 21:50:52 maybe-finance/maybe
2024-10-15 12:03:41 capistrano/sshkit
2024-10-07 22:52:44 sous-chefs/postgresql
2024-10-06 00:01:30 rails/solid_queue
2024-09-26 23:26:21 dependabot/dependabot-core