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

var_group: integration with metadata #196

Open
flownt opened this issue Feb 25, 2025 · 0 comments
Open

var_group: integration with metadata #196

flownt opened this issue Feb 25, 2025 · 0 comments

Comments

@flownt
Copy link

flownt commented Feb 25, 2025

Currently var_group has the effect of renaming the rule by appending an index (.1, .2, etc.) to the name to indicate which variable was used, whereas other metadata (e.g. Description, Label) is unaffected.

I would like a glue-like syntax to also apply the var_group-expansion to the metadata of a rule and have these expansions available for further processing.

rules:
   - expr: "G:= var_group (a, b, c) "
   - expr: "G<0"
     name: "negative.{G}"
     label: "{G} should be negative"
     description: "The variable {G} is a debt and therefore always negative."
     meta: 
         severity:
             "error"

Ideally this would net me a validate::validator with 3 rules, corresponding to a, b and c.

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

No branches or pull requests

1 participant