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

ReplaceWithVAR: optional '=' character

Open okalmari opened this issue 4 months ago • 0 comments

Robot Framework has different assignment styles for the VAR syntax: VAR ${variable} value VAR ${variable}= value VAR ${variable} = value

The ReplaceWithVAR transformer in Robotidy only supports the style without the equals character. A configuration option could be added so that the user can decide which style to use.

For example, something like this: robotidy -t ReplaceWithVAR:assignment_style=plain src robotidy -t ReplaceWithVAR:assignment_style=equals_without_space src robotidy -t ReplaceWithVAR:assignment_style=equals_with_space src

okalmari avatar Oct 22 '24 10:10 okalmari