How I can (partially) disable sorting/ordering in arbitrary_source_item_ordering
?
#13675
Replies: 2 comments 7 replies
This comment has been hidden.
This comment has been hidden.
-
Currently it's not possible to disable alphabetical ordering within groups - I've already put that on my todo-list and will add it as a feature in the coming week or two (should be a very small change). Enforcing some groupings but not others can be achieved by declaring the groups you want, and putting everything else in a catch-all group. That could look a bit like this, adjusted as per your needs:
Until I add the option to switch off alphabetical sorting within groups, it's probably not that useful though. Now that I think of it, it could work better with a catch-all for that, I could add the option to put an asterisk in one of the groups to make configuration easier. |
Beta Was this translation helpful? Give feedback.
-
Very recently the new
arbitrary_source_item_ordering
was added. It is a lint with quite a few configurations, but I'm struggling a bit how I can disable alphabetical sorting.I'm particularly interested in enforcing some grouping, i.e. group
use
,mod
, etc., but I don't get it to not enforce alphabetical item ordering at the same time. I also did not manage to only enforce some groupings but not all at the same time (e.g. to not grouplower_snake_case
items but the other groups).Could you give me some pointer how a configuration for this might look like?
Beta Was this translation helpful? Give feedback.
All reactions