4 stable releases

2.11.3 Mar 13, 2025
2.11.2 Mar 11, 2025
2.11.1 Mar 6, 2025
2.11.0 Mar 5, 2025

#21 in #fix

Download history 799/week @ 2025-03-05 281/week @ 2025-03-12 27/week @ 2025-03-19 13/week @ 2025-03-26 21/week @ 2025-04-02 46/week @ 2025-04-09

117 downloads per month
Used in cairo-language-server

Custom license

235KB
5K SLoC

Cairo lint

A collection of lints to catch common mistakes and improve your Cairo code.

Quick start

cairo-lint can either be used as a library or as a standalone binary. It can either just detect or fix the detected problems.

To use it with scarb simply install it like so:

cargo install scarb-cairo-lint --git https://github.com/software-mansion/cairo-lint

and then either run:

# Checks for bad patterns
scarb cairo-lint
# Checks and fixes what it can
scarb cairo-lint --fix

Features

  • The --test flag to include test files.

Community

As for now there is only a telegram channel dedicated to cairo-lint.

Dependencies

~27–37MB
~570K SLoC