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: loop for while lint #53

Closed coxmars closed 2 months ago

coxmars commented 3 months ago

Summary πŸ“Œ

This PR closes issue #34

This PR introduces a new lint loop_for_while that detects and suggests replacing unnecessary loop constructs with while loops, improving code clarity and conciseness.

Changes Made ⚑️

Implementation of loop_for_while Lint

Test Coverage πŸ₯·πŸΌ

Test Results βœ…

All tests have passed successfully, confirming that the loop_for_while lint works as intended and improves the readability of the code.

image
0xLucqs commented 2 months ago

replaced by #89