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

Reusable patterns #10164

Open
xmo-odoo opened this issue Apr 26, 2024 · 0 comments
Open

Reusable patterns #10164

xmo-odoo opened this issue Apr 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@xmo-odoo
Copy link

In my experience, it's pretty common for some patterns. especially metavariable-pattern, to be repeated in lots of rules to refine matches or define classes of passing / failing constructs.

It would be nice to have an easy way to define patterns possibly independent from rules, and then invoke them from rules instead of having to copy/paste the same patterns over and over.

This is somewhat related to #3758: expressing non-literal strings is a bit verbose and somewhat error prone because of yaml, the ability to define reusable metavariable patterns would allow defining a single "non-literal" pattern, and then invoke that every time we want to make that assertion.

@ievans ievans added the enhancement New feature or request label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants