Skip to contentSlop Block

require-lint-suppression-reason

Warning

Give a reason for each suppression: #[allow], eslint-disable-next-line, @ts-expect-error or // ignore:.

#[allow(clippy::cast_possible_wrap)]Document the reason for this lint suppressionfn run() {}
#[expect(unused_variables)]Document the reason for this lint suppressionfn run() {}
// ast-grep-ignore: require-lint-suppression-reason-rust

How to fix

Add reason = "..." to the attribute, or write the reason in a comment on the line above. Put it on the smallest item that needs it.