Z503: SNIPPET_ERROR
Severity: warning
Penalty: 10.0 points
Category: content
Auto-fixable: No
Rationale¶
This content quality rule is emitted when a fenced code block with a specified language tag (such as python or yaml) contains syntax errors that fail AST parsing for that language.
How to Fix¶
Inspect the flagged location in the Markdown file and update the content or configuration:
Bad (Triggers Z503)¶
Good (Resolves Z503)¶
<!-- GOOD: Valid Python syntax or use 'text' tag for partial code -->
```python
def calculate_score(penalty: float) -> float:
return 100.0 - penalty
```
Configuration¶
Reference¶
See the Finding Codes Index for finding code details.