substancelab / dotfiles

A set of configuration files, inspired by Thoughtbot, customized for our use.
MIT License
0 stars 1 forks source link

Make Rubocop sort like Ruby, VS Code and others #18

Closed koppen closed 4 years ago

koppen commented 4 years ago

Without this the following order is correct according to Rubocop:

  1. "capistrano3-puma"
  2. "capistrano-bundler"

However Ruby says something different:

> ["capistrano3-puma", "capistrano-bundler"].sort
=> ["capistrano-bundler", "capistrano3-puma"]

and sorting using sort(1), VS Code and Sublime Text gives us the same ordering as Ruby:

  1. "capistrano-bundler"
  2. "capistrano3-puma"