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 `eq_op` #15

Open 0xLucqs opened 1 month ago

0xLucqs commented 1 month ago

What it does

Checks for equal operands to comparison, logical and bitwise, difference and division binary operators (==, >, etc., &&, ||, &, |, ^, - and /).

Why is this bad?

This is usually just a typo or a copy and paste error.

Example

if x + 1 == x + 1 {}

// or

assert_eq!(a, a);

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

Gerson2102 commented 1 month ago

This issue can be considered a good first issue?

0xLucqs commented 1 month ago

Yeah I think so and anyway i can guide you so you know how to start or if you're stuck don't hesitate to ping me on telegram