Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor(rule/context-as-argument): replace AST walker by iteration over declarations #1160

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

chavacava
Copy link
Collaborator

Simplifies context-as-argument rule by replacing AST walker by an iteration over global declarations

Comment on lines 49 to 50
// a parameter of type context.Context is still allowed if the current arg type is in the LUT
_, isCtxStillAllowed = r.allowTypesLUT[typeName]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While working on this, LUT terms is cryptic.

Maybe you could rename it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, is true that makes you think twice this LookUp Table acronym

@chavacava chavacava merged commit 9a5c95f into master Dec 4, 2024
5 checks passed
@denisvmedia denisvmedia deleted the refactor/context-as-argument branch December 5, 2024 12:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants