robotframework-tidy
robotframework-tidy copied to clipboard
ReplaceWithVAR: optional '=' character
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