keep-starknet-strange / cairo-lint

A collection of lints to catch common mistakes and improve your Cairo code.
17 stars 18 forks source link

Add `duplicate_underscore_argument` #11

Closed 0xLucqs closed 1 day ago

0xLucqs commented 1 month ago

What it does

Checks for function arguments having the similar names differing by an underscore.

Why is this bad?

It affects code readability.

Example

fn foo(a: i32, _a: i32) {}

Use instead:

fn foo(a: i32, _b: i32) {}

https://rust-lang.github.io/rust-clippy/master/index.html#/duplicate_underscore_argument

stevencartavia commented 1 month ago

Hi, can I take this?

0xLucqs commented 1 month ago

sure can you join the telegram group as well so i can help if you're stuck or don't know how to start ? https://t.me/cairolint