Skip to contentSlop Block

no-shape-in-names

Warning

Do not use shape in declared names.

struct UserShape {UserShape contains the word shape	name: String,}
fn run() {	let response_shape = load();response_shape contains the word shape}
// ast-grep-ignore: no-shape-in-names-rust

How to fix

Use a specific name such as User or UserInput. The rule skips members owned by a library, such as Zod's schema.shape.