Closed Gianfranco99 closed 2 weeks ago
any news ?
any news ?
Done, I'm going to do a push now. @0xLucqs
still need the
1==1
test
I had added that test but I deleted it since there was a conflict with a new test that validates the same condition and it generated conflicts in the file showing another error message, but if you want we can see how we solve this and also add that test @0xLucqs
@all-contributors please add @Gianfranco99 for code and tests
@0xLucqs
I've put up a pull request to add @Gianfranco99! :tada:
Summary 📌 This PR Resolves: https://github.com/keep-starknet-strange/cairo-lint/issues/87
What it does: This PR introduces a new lint that detects consecutive if statements with the same condition. When two if or else if blocks check the same condition, this could be an indication of a copy & paste error, and this lint helps prevent such mistakes. All tests pass