Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linter: new rule for dangerous bool/int condition #1217

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Hidanio
Copy link
Contributor

@Hidanio Hidanio commented Mar 22, 2024

Sometimes during debugging we can write this kind of code

if(1){
}
while(true){
}

This code can be very dangerous.

Added:

  • new rules for: if/while/do statemenst
  • tests for it

@Hidanio Hidanio added the enhancement New feature or request label Mar 22, 2024
@Hidanio Hidanio self-assigned this Mar 22, 2024
@Hidanio Hidanio force-pushed the hidanio/dangerous_bool_condition branch 3 times, most recently from f38fb71 to a8fb57d Compare March 22, 2024 14:32
@Hidanio Hidanio marked this pull request as ready for review March 22, 2024 14:34
@Hidanio Hidanio force-pushed the hidanio/dangerous_bool_condition branch from ec8edcf to 8ba31d5 Compare November 16, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant