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

[Rule] Accessing item and dict variables using different syntax #852

Open
bhirsz opened this issue Jun 6, 2023 · 0 comments
Open

[Rule] Accessing item and dict variables using different syntax #852

bhirsz opened this issue Jun 6, 2023 · 0 comments
Labels
rule Issue related to creating or changing a rule
Milestone

Comments

@bhirsz
Copy link
Member

bhirsz commented Jun 6, 2023

Both ways are possible:

${dict['item']}
${dict}[item]

There should be rule that would point inconsistency (when we're using both formats). It could be configurable to always report if the user uses particular format.

@bhirsz bhirsz added the rule Issue related to creating or changing a rule label Jun 6, 2023
@bhirsz bhirsz changed the title [Rule] Accessing item and dict variables in the same way [Rule] Accessing item and dict variables using different syntax Jun 6, 2023
@mnojek mnojek added this to the 4.1.0 milestone Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule Issue related to creating or changing a rule
Projects
None yet
Development

No branches or pull requests

2 participants