Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieucan committed May 21, 2024
1 parent 4a1b8ec commit bfab36c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dbt_score/rules/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ def columns_have_description(model: Model) -> RuleViolation | None:
column.name for column in model.columns if not column.description
]
if invalid_column_names:
max_length = 60
message = f"Columns lack a description: {', '.join(invalid_column_names)}."
if len(message) > 60:
if len(message) > max_length:
message = f"{message[:60]}…"
return RuleViolation(message=message[:90])

Expand Down

0 comments on commit bfab36c

Please sign in to comment.