Skip to content

Commit 5f5f429

Browse files
committed
add docs
1 parent 347e312 commit 5f5f429

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

docs/guides/linter.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ Here are all of SQLMesh's built-in linting rules:
7474
| `invalidselectstarexpansion` | Correctness | The query's top-level selection may be `SELECT *`, but only if SQLMesh can expand the `SELECT *` into individual columns |
7575
| `noselectstar` | Stylistic | The query's top-level selection may not be `SELECT *`, even if SQLMesh can expand the `SELECT *` into individual columns |
7676
| `nomissingaudits` | Governance | SQLMesh did not find any `audits` in the model's configuration to test data quality. |
77+
| `nomissingexternalmodels` | Governance | All external models must be registered in the external_models.yaml file |
78+
| `cronvalidator` | Governance | Upstream model has a cron expression with longer intervals than downstream model. |
7779

7880
### User-defined rules
7981

sqlmesh/core/linter/rules/builtin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def create_fix(self, model_name: str) -> t.Optional[Fix]:
275275

276276

277277
class CronValidator(Rule):
278-
"""Upstream model has a cron expression with longer intervals than this model's."""
278+
"""Upstream model has a cron expression with longer intervals than downstream model."""
279279

280280
def check_model(self, model: Model) -> t.Optional[RuleViolation]:
281281
placeholder_start_date = "2020-01-01 10:00:00"

0 commit comments

Comments
 (0)