Sign inGet started
–

adding-ty-diagnostics

by astral-sh/ruff · Coding & Development

Guides developers through adding or updating diagnostics and lint rules in the ty type checker, covering concise error messaging, subdiagnostics, snapshot and mdtests testing, and regenerating schemas

Lift · GLM-5.3-flash—untestable in our sandbox · why ↓
90
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP

What it does

Use when a user says "add a ty rule", "add a ty diagnostic", "write this new ty diagnostic", "change a ty error message", "review ty diagnostics", or asks to add, update, or review ty checks, diagnostic messages, subdiagnostics, or concise output behavior.

#diagnostics#linter#lint-rules#rust#testing#type-checker

Quality judgment

completeness
7.5/10
clarity
8.0/10
trigger quality
8.5/10
examples
6.0/10
structure
7.0/10
overall
7.5/10

The document provides comprehensive, well-organized guidance for adding and modifying ty diagnostics. It covers error message conciseness, subdiagnostics usage, testing strategies, rule declaration patterns, and version management. The instructions are specific and actionable, though the testing guidance could be slightly more explicit about edge cases.

Files (2)

LICENSE · 20.2 KBSKILL.md · 3.3 KB