-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Description
Versions
- Elixir: 1.17.2
- Styler: 1.3.1
Example Input
defmodule Example do
@moduledoc false
def data do
%{
key:
# styler:sort
[
1,
3,
2
]
}
end
endStacktrace / Current Behaviour
On first mix format the list is ordered and # styler:sort is moved
defmodule Example do
@moduledoc false
def data do
%{
# styler:sort
key: [
1,
2,
3
]
}
end
endBecause the comment was moved, this list won't be sorted.
defmodule Example do
@moduledoc false
def data do
%{
# styler:sort
key: [
2,
1,
3
]
}
end
endMetadata
Metadata
Assignees
Labels
No labels