robotframework-tidy icon indicating copy to clipboard operation
robotframework-tidy copied to clipboard

[Transformer] Order Variables section

Open bhirsz opened this issue 7 months ago • 2 comments

Robot style guide recommends ordering the variables based in their complexity: https://docs.robotframework.org/docs/style_guide/guide#variables

bhirsz avatar Nov 23 '23 08:11 bhirsz

Transformer should be optional for now. It should also sort in alpthabetical order (and respecting 1 -> 2 ->10). It should first sort by complexity, then by name, Both should be configurable (enable/disable sorting by complexity or by name flags).

bhirsz avatar Dec 25 '23 10:12 bhirsz

Whitespace and comments should be preserved - same as OrderSettingsSection.

Disablers should be respected.

Order by type (scalad/list/dict) will not be supported but could be added in the future.

bhirsz avatar Dec 25 '23 10:12 bhirsz