gemfiles/rails_5_2.gemfile
Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem mysql2
should appear before sqlite3
. Open
Open
gem "mysql2", "~> 0.4.0" if ENV["CI"] || ENV["ALL_DB"] || ENV["DB"] == "mysql"
- Read upRead up
- Exclude checks
Gems should be alphabetically sorted within groups.
Example:
# bad
gem 'rubocop'
gem 'rspec'
# good
gem 'rspec'
gem 'rubocop'
# good
gem 'rubocop'
gem 'rspec'
# good only if TreatCommentsAsGroupSeparators is true
# For code quality
gem 'rubocop'
# For tests
gem 'rspec'