Skip to content

Files

Latest commit

 

History

History
41 lines (28 loc) · 598 Bytes

Bundler-OrderedGems.md

File metadata and controls

41 lines (28 loc) · 598 Bytes

Pattern: Unordered gems

Issue: -

Description

Gems should be alphabetically sorted within groups.

Examples

# 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'

Default configuration

Attribute Value
Include **/Gemfile, **/gems.rb
TreatCommentsAsGroupSeparators true

Further Reading