We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c482f commit f1aaf29Copy full SHA for f1aaf29
src/dbt_score/rules/generic.py
@@ -44,9 +44,9 @@ def sql_has_reasonable_number_of_lines(
44
45
46
@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":
+def has_example_sql(model: Model) -> RuleViolation | None:
+ """The documentation of a model should have an example query."""
+ if model.language == "sql":
50
if "```sql" not in model.description:
51
return RuleViolation(
52
"The model description does not include an example SQL query."
0 commit comments