Skip to content

software-mansion/cairo-lint

Folders and files

NameName
Last commit message
Last commit date
Dec 17, 2024
Dec 17, 2024
Feb 3, 2025
Dec 17, 2024
Dec 12, 2024
Aug 19, 2024
Dec 17, 2024
Feb 3, 2025
Feb 3, 2025
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024

Repository files navigation

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.