Skip to content

Commit f1aaf29

Browse files
committed
Remove filter in rule public_model_has_example_sql
1 parent 74c482f commit f1aaf29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dbt_score/rules/generic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def sql_has_reasonable_number_of_lines(
4444

4545

4646
@rule(severity=Severity.LOW)
47-
def public_model_has_example_sql(model: Model) -> RuleViolation | None:
48-
"""The documentation of a public model should have an example query."""
49-
if model.language == "sql" and model.access == "public":
47+
def has_example_sql(model: Model) -> RuleViolation | None:
48+
"""The documentation of a model should have an example query."""
49+
if model.language == "sql":
5050
if "```sql" not in model.description:
5151
return RuleViolation(
5252
"The model description does not include an example SQL query."

0 commit comments

Comments
 (0)