We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
“禁止将常量作为 if, for, while 里的测试条件,比如 if (true), for (;;),除非循环内部有 break 语句”这是你们给出的注释
for (;;)这种形式并没有将常量作为条件,这应该不是这规则所警告的
for (;;)
checkLoops为 false是指 允许在循环中使用常量表达式。而不是指“循环内部有 break 语句”就可以的
The text was updated successfully, but these errors were encountered:
d8b585f
非常感谢指出错误!
Sorry, something went wrong.
No branches or pull requests
“禁止将常量作为 if, for, while 里的测试条件,比如 if (true), for (;;),除非循环内部有 break 语句”这是你们给出的注释
for (;;)
这种形式并没有将常量作为条件,这应该不是这规则所警告的checkLoops为 false是指 允许在循环中使用常量表达式。而不是指“循环内部有 break 语句”就可以的
The text was updated successfully, but these errors were encountered: