Skip to content

Commit

Permalink
Allow min and max keys in standard configuration of coverity
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeWaumans committed Nov 25, 2024
1 parent 03dec47 commit 5a3ecb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mlx/warnings/regex_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5a3ecb4

Please sign in to comment.