A question about gemfile_sorter:

If your gemfile has blocks based on groups and blocks based on sources, how do you expect those to be sorted:

group :development do
# stuff
end

source “gem-host" do
# stuff
end

  • Always sources before groups (16)
  • Depends on the repo (1)
  • Always groups before sources (2)
  • No preference, don't care (5)
3
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Bradley Schaefer

@noelrap I will say sources, because I think they have a higher importance

0
12mo
PointlessOne

@noelrap Definitely blockless source at the very top. Otherwise doesn't matter.

0
12mo
Noel Rappin

I've updated gemfile_sorter in response to this feedback to put source blocks before group blocks

0
12mo
Replies