keep-starknet-strange / cairo-lint

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

feat: Cairo lint branch #136

Closed sebas11042 closed 2 weeks ago

sebas11042 commented 3 weeks ago

This update adds a new lint rule for detecting inefficient comparisons like x >= y + 1 or x <= y - 1, which can be simplified to x > y or x < y. The rule now checks binary expressions and provides a warning when such patterns are detected, contributing to more efficient and readable code.