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

ruleguard,analyzer: change Report() callback argument #327

Merged
merged 1 commit into from
Dec 28, 2021

Conversation

quasilyte
Copy link
Owner

Pass a structure with a set of fields instead of
passing them as separate arguments.

This makes it easier to add more (potentially experimental)
match context arguments without breaking the API.

But this time we have to break the API once.

AST walker now saves current function name (and type name if it's
a method). This can be useful in filters later, so we can match
the current function name/type in Where() expressions.

@quasilyte quasilyte force-pushed the quasilyte/rework_report_arg branch from fbb8806 to 027a675 Compare December 28, 2021 19:45
Pass a structure with a set of fields instead of
passing them as separate arguments.

This makes it easier to add more (potentially experimental)
match context arguments without breaking the API.

But this time we have to break the API once.
@quasilyte quasilyte force-pushed the quasilyte/rework_report_arg branch from 027a675 to 5bbdc5f Compare December 28, 2021 19:47
@quasilyte quasilyte merged commit fd27736 into master Dec 28, 2021
@quasilyte quasilyte deleted the quasilyte/rework_report_arg branch December 28, 2021 20:16
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.

1 participant