robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

[ENHANCEMENT] Accept `${_}` variable as purposefully not used

Open gohierf opened this issue 1 year ago • 1 comments

Is your enhancement request related to a problem? Please describe. I get the following warning: Variable '${_}' is not used.robotcode.diagnostics(VariableNotUsed)

For instance, when ignoring some of the output of a multi-output keyword.

Robocop unused-variable rule supports this convention.

Describe the solution you'd like I would like Robotcode to ignore ${_} when checking for unused variables.

Describe alternatives you've considered I could use # robotcode: ignore.

Additional context I think the convention of using _ for throwaway variables in Python is worth adding to Robotcode.

gohierf avatar May 28 '24 13:05 gohierf

That's a good point!!!

d-biehl avatar May 28 '24 13:05 d-biehl