Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable empty-variable rule for VAR and leave it for *** Variables *** section #1056

Open
borutzki opened this issue Feb 9, 2024 · 0 comments

Comments

@borutzki
Copy link

borutzki commented Feb 9, 2024

Since new VAR syntax has by default the same settings as creating empty variables in *** Variables *** section, it is inconsistent with old Create Dictionary / Create List / Set Variable keywords that allowed creating empty variables with no need to use placeholders.

For example, this:

&{some_dict}    Create Dictionary  # no issues

with VAR and default for empty-variable rule is suggested to be refactored into this:

VAR    &{some_dict}    # now Robocop will complain

It seems inconsistent with previous way of creating empty variables inside of keywords. Maybe that suggestion is not necessarily bad but it would be nice-to-have feature to separate the setting for Variables section and for inline-created VARs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant