@@ -17,7 +17,7 @@ def check_model(self, model: Model) -> t.Optional[RuleViolation]:
1717 if not isinstance (model , SqlModel ):
1818 return None
1919
20- return self .violation () if model .query .is_star else None
20+ return self .violation (model ) if model .query .is_star else None
2121
2222
2323class InvalidSelectStarExpansion (Rule ):
@@ -32,7 +32,7 @@ def check_model(self, model: Model) -> t.Optional[RuleViolation]:
3232 f"'{ model .fqn } ' can be rendered at parse time."
3333 )
3434
35- return self .violation (violation_msg )
35+ return self .violation (model , violation_msg )
3636
3737
3838class AmbiguousOrInvalidColumn (Rule ):
@@ -45,14 +45,14 @@ def check_model(self, model: Model) -> t.Optional[RuleViolation]:
4545 f"{ sqlglot_err } for model '{ model .fqn } ', the column may not exist or is ambiguous."
4646 )
4747
48- return self .violation (violation_msg )
48+ return self .violation (model , violation_msg )
4949
5050
5151class NoMissingAudits (Rule ):
5252 """Model `audits` must be configured to test data quality."""
5353
5454 def check_model (self , model : Model ) -> t .Optional [RuleViolation ]:
55- return self .violation () if not model .audits and not model .kind .is_symbolic else None
55+ return self .violation (model ) if not model .audits and not model .kind .is_symbolic else None
5656
5757
5858BUILTIN_RULES = RuleSet (subclasses (__name__ , Rule , (Rule ,)))
0 commit comments