keep-starknet-strange / cairo-lint

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

Add `break_unit` #13

Closed 0xLucqs closed 2 months ago

0xLucqs commented 3 months ago

What it does

Find all break (); usages.

Why restrict this

Empty brackets after break usage are redundant and can be omitted, and it may be desirable to do so consistently for style.

Example

loop {
    break ();
};

Use instead:

loop {
    break;
};
raizo07 commented 3 months ago

Hello @0xLucqs Can I work on this?

0xLucqs commented 3 months ago

sure ! join the telegram group as well so it's easier for help and coordination https://t.me/cairolint