Skip to content

Commit 67a405b

Browse files
committed
README.md: Add boolean in while condition rule to table
1 parent b8ed629 commit 67a405b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
| Configuration Parameters | Rule Description |
1010
|:---------------------------------------|:--------------------------------------------------------------------------------------------------------|
1111
| `booleansInConditions` | Require booleans in `if`, `elseif`, ternary operator, after `!`, and on both sides of `&&` and `\|\|`. |
12+
| `booleansInLoopConditions` | Require booleans in `while` and `do while` loop conditions. |
1213
| `numericOperandsInArithmeticOperators` | Require numeric operands or arrays in `+` and numeric operands in `-`/`*`/`/`/`**`/`%`. |
1314
| `numericOperandsInArithmeticOperators` | Require numeric operand in `$var++`, `$var--`, `++$var`and `--$var`. |
1415
| `strictFunctionCalls` | These functions contain a `$strict` parameter for better type safety, it must be set to `true`:<br>* `in_array` (3rd parameter)<br>* `array_search` (3rd parameter)<br>* `array_keys` (3rd parameter; only if the 2nd parameter `$search_value` is provided)<br>* `base64_decode` (2nd parameter). |
@@ -62,6 +63,7 @@ parameters:
6263
strictRules:
6364
disallowedLooseComparison: false
6465
booleansInConditions: false
66+
booleansInLoopConditions: false
6567
uselessCast: false
6668
requireParentConstructorCall: false
6769
disallowedBacktick: false

0 commit comments

Comments
 (0)