From 5a3ecb409842814c90e5fba0d1de8f910c24d063 Mon Sep 17 00:00:00 2001 From: JWM Date: Mon, 25 Nov 2024 17:41:08 +0100 Subject: [PATCH] Allow min and max keys in standard configuration of coverity --- src/mlx/warnings/regex_checker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mlx/warnings/regex_checker.py b/src/mlx/warnings/regex_checker.py index 19fbbe77..b53c5e06 100644 --- a/src/mlx/warnings/regex_checker.py +++ b/src/mlx/warnings/regex_checker.py @@ -168,6 +168,10 @@ def parse_config(self, config): self.cq_default_path = value if value := config.pop("exclude", None): self.add_patterns(value, self.exclude_patterns) + if value := config.pop("min", 0): + self.minimum = value + if value := config.pop("max", 0): + self.maximum = value for classification, checker_config in config.items(): classification_key = classification.lower().replace("_", " ") if classification_key in self.checkers: