Rails style guide
rubocop-rake
Our great sponsors
Rails style guide | rubocop-rake | |
---|---|---|
4 | 2 | |
6,450 | 72 | |
0.3% | - | |
4.3 | 4.1 | |
2 months ago | 3 months ago | |
Ruby | ||
- | MIT License |
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.
Rails style guide
-
Development guidelines
As you see - there are no reference to any technology or framework. There are a lot of best-practices for almost any framework, so you can choose an appropriate one. For example - if you're a rails developer, then you can check https://github.com/rubocop/ruby-style-guide and https://github.com/rubocop/rails-style-guide but if you're a golang developer - https://github.com/uber-go/guide/blob/master/style.md and https://developers.mattermost.com/contribute/more-info/server/style-guide/
-
Beginner's Guide to RuboCop in Rails
Rails
-
Learning Ruby on Rails as an experienced programmer
Couple of examples: ruby style guide, rails style guide
-
Why You Should Avoid Models in Rails Migrations
A workaround proposed in Rails styleguide seems a good solution : https://rails.rubystyle.guide/#define-model-class-migrations
rubocop-rake
-
How to make rubocop be more versatile
2) You can create your own rubocop extension with your own cops. See the Extensions docs. This can take the form of files in your application, or your own custom gem. Have a look at e.g. rubocop-rake.
-
Beginner's Guide to RuboCop in Rails
rubocop-rake: A RuboCop plugin for Rake
What are some alternatives?
Ruby style guide - A community-driven Ruby coding style guide
rubocop-rspec - Code style checking for RSpec files
Fundamental Ruby - :books: Fundamental programming with ruby examples and references. It covers threads, SOLID principles, design patterns, data structures, algorithms. Books for reading. Repo for website https://github.com/khusnetdinov/betterdocs
rubocop-minitest - Code style checking for Minitest files.
RSpec style guide - RSpec Best Practices
Rake - A make-like build utility for Ruby.
fast-ruby - :dash: Writing Fast Ruby :heart_eyes: -- Collect Common Ruby idioms.
Airbrake - The official Airbrake library for Ruby applications
Best-Ruby - Ruby Tricks, Idiomatic Ruby, Refactoring and Best Practices
contracts.ruby - Contracts for Ruby.
Functional Ruby