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

add query override data structures #788

Merged

Conversation

suaviloquence
Copy link
Contributor

adds the new members:

  • QueryOverride to configure overridden default values for a lint
  • OverrideMap (type alias) for a mapping of lint ids to QueryOverride structs.
  • OverrideStack, a stack of OverrideMaps to store multiple levels of overrides, where items higher in the stack have higher precedence over lower ones when both are set.

I kind of struggled in choosing names for these, especially OverrideMap, so if you have any ideas for that which better represent what it is, please let me know, thanks!

Copy link
Owner

@obi1kenobi obi1kenobi left a comment

Choose a reason for hiding this comment

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

The data structures seem very sensible and are quite well-documented. Nicely done!

I got a bit tripped up on one of the phrases in the docs. I'm happy to let you take a look and merge immediately after, or even merge now and trust you to make the right tweaks in a subsequent PR if you'd prefer that. Your call!

src/query.rs Outdated Show resolved Hide resolved
src/query.rs Outdated Show resolved Hide resolved
@obi1kenobi obi1kenobi enabled auto-merge (squash) June 10, 2024 23:14
@obi1kenobi obi1kenobi merged commit 393691c into obi1kenobi:main Jun 10, 2024
34 checks passed
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.

2 participants