keep-starknet-strange / cairo-lint

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

feat: add if pattern detection for manual lints #128

Closed chachaleo closed 2 months ago

chachaleo commented 2 months ago

Manual implementation using if patterns of :

Example

if let Option::Some(val) = opt_val {
    true
} else {
    false
}

Should be

opt_val.is_some()