-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
When running keep-sorted in our ruby code base, we have the following syntax that wraps arrays
# keep-sorted start
SOME_ARRAY = %w[
AAA
BBB
CCC
].freeze
# keep-sorted endWe are unable to nest the # keep-sorted start/end within the array because of the %w. E.g. this is incorrect
SOME_ARRAY = %w[
# keep-sorted start
AAA
BBB
CCC
# keep-sorted end
].freezeWhat we're doing as somewhat of a workaround, which we believe is effectively sorting the last row ].freeze as well (which would be incorrect)
# keep-sorted start skip_lines=1 block=yes
SOME_ARRAY = %w[
AAA
BBB
CCC
].freeze
# keep-sorted endThe feature request is to add a syntax that allows something like this:
# keep-sorted start skip_lines=1 skip_last_lines=1 block=yes
SOME_ARRAY = %w[
AAA
BBB
CCC
].freeze
# keep-sorted endReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels