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: var-shadows-builtin #893

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Rule: var-shadows-builtin #893

merged 1 commit into from
Jul 2, 2024

Conversation

anderseknert
Copy link
Member

Also in this PR is a slight change of behavior, where variables found in comprehension heads are no longer treated as assigned. This as they aren't, and the assignment happens in the comprehension body (or outside the comprehension). This change will uncover a few more use-some-for-output-vars issues in policy, which was also fixed as part of this PR.

Fixes #823

docs/rules/bugs/var-shadows-builtin.md Outdated Show resolved Hide resolved
Also in this PR is a slight change of behavior, where variables found
in comprehension heads are no longer treated as assigned. This as they
_aren't_, and the assignment happens in the comprehension body (or outside
the comprehension). This change will uncover a few more
`use-some-for-output-vars` issues in policy, which was also fixed as part
of this PR.

Fixes #823

Signed-off-by: Anders Eknert <[email protected]>
@anderseknert anderseknert merged commit b7c7385 into main Jul 2, 2024
3 checks passed
@anderseknert anderseknert deleted the var-shadows-builtin branch July 2, 2024 14:25
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

Successfully merging this pull request may close these issues.

Rule: var-shadows-builtin
2 participants