From c157b1c45517ba20cc6b4ddd6dfcb91a98974143 Mon Sep 17 00:00:00 2001 From: Agus Zubiaga Date: Fri, 25 Apr 2025 13:25:39 -0300 Subject: [PATCH] rules: How to run clippy (#29247) Tell model how to run clippy in `.rules` Release Notes: - N/A --- .rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.rules b/.rules index e36c7db343..89bb5d585d 100644 --- a/.rules +++ b/.rules @@ -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` references. This replaces `ModelContext` 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` should NEVER be used. + + +## General guidelines + +- Use `./script/clippy` instead of `cargo clippy`