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
Fix IDE warnings and remove usage of several deprecated fields. #6397
Conversation
1c0def1
to
b05a02d
Compare
✅ Deploy Preview for openpolicyagent ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for openpolicyagent ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Will Beason <willbeason@gmail.com>
b05a02d
to
a710464
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @willbeason! LGTM. Only thing I'm not sure about is if Path()
should be replaced by Ref()
and not Ref().GroundPrefix()
. cc @johanfylling
Yeah, the replace looks weird. It is equivalent (at least, according to tests), but it doesn't look good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I believe all instances of .Path()
that's been replaced here do expect the ground prefix; so the change is good 👍 .
Why the changes in this PR are needed?
Reducing the reliance on deprecated functions makes it easier to delete them later. Fixing these warnings reduces IDE clutter as IDEs highlight these and show them in code reports, increasing noise that might help devs identify issues that could actually represent problems.
What are the changes in this PR?