MarketSquare / robotframework-robocop

Tool for static code analysis of Robot Framework language
Apache License 2.0
177 stars 37 forks source link

Section variable name should be checked for inconsistent variable name #1084

Open jyligehc opened 2 months ago

jyligehc commented 2 months ago

As there is a rule for checking that section variable is in UPPERCASE should there also be a rule for checking that the name is consistently used within that file?

Or maybe the rule inconsistent-variable-name should check those also? And maybe possible-variable-overwriting also?

gohierf commented 2 months ago

Not a robocop rule, but you might still be interested in this utility script that Robin Mackaij shared during his tutorial "Working with Resources, Libraries and Variables: patterns and pitfalls" during RoboCon24:

https://github.com/robinmackaij/robovar

The script checks the variables name are used consistently over the whole project.