rules: How to run clippy (#29247)

Tell model how to run clippy in `.rules`

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga 2025-04-25 13:25:39 -03:00 committed by GitHub
parent 136e83e0b1
commit c157b1c455
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

5
.rules
View File

@ -119,3 +119,8 @@ GPUI has had some changes to its APIs. Always write code using the new APIs:
* Use `App` references. This replaces `AppContext` which no longer exists and should NEVER be used.
* Use `Context<T>` references. This replaces `ModelContext<T>` which no longer exists and should NEVER be used.
* `Window` is now passed around explicitly. The new interface adds a `Window` reference parameter to some methods, and adds some new "*_in" methods for plumbing `Window`. The old types `WindowContext` and `ViewContext<T>` should NEVER be used.
## General guidelines
- Use `./script/clippy` instead of `cargo clippy`