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

Reported use-if violation locations too broad #1361

Open
anderseknert opened this issue Jan 23, 2025 · 0 comments · May be fixed by #1362
Open

Reported use-if violation locations too broad #1361

anderseknert opened this issue Jan 23, 2025 · 0 comments · May be fixed by #1362
Labels
bug Something isn't working

Comments

@anderseknert
Copy link
Member

Working on some legacy Rego, and use-if rule violations are all over the place. The location reported should end at the rule head ref and not cover the whole rule including the body.

Image

@anderseknert anderseknert added the bug Something isn't working label Jan 23, 2025
anderseknert added a commit that referenced this issue Jan 23, 2025
@anderseknert anderseknert linked a pull request Jan 23, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant