-
Notifications
You must be signed in to change notification settings - Fork 375
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
feat: implement shadowing rules #1793
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1793 +/- ##
==========================================
+ Coverage 44.80% 47.49% +2.69%
==========================================
Files 459 388 -71
Lines 67651 61305 -6346
==========================================
- Hits 30310 29117 -1193
+ Misses 34801 29750 -5051
+ Partials 2540 2438 -102 ☔ View full report in Codecov by Sentry. |
Apart from my comment, I think it all looks good and makes sense so long as we're in agreement that this is want we want to do. |
Would it make sense to include tests for all Go built-in functions? I count about 19 of these currently listed here: https://go.dev/ref/spec#Built-in_functions |
I'm supportive of the concept for improved code security. |
I think it's more than that -- probably everything grouped as a Predeclared Identifier on that page. |
done |
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.
Looks good 💯
I'm not a fan of introducing even more panics into the codebase, but I realize there is no other option to stop execution currently (errors would require a much larger refactor)
implements this
Most of the changes are fixing stdlib code where we get errors because of the new shadowing rules.