KS6024
A yes/no option given true or false by name. An option that is only on or off reads as a flag: its name on its own means true, and not in front means false.
<let name="rows" value="$readings->cells(header: false)" /> <!-- the warning: header: false -->$rows = $readings->cells(header: false) // the warning: header: false<let name="rows" value="$readings->cells(not header)" /> <!-- the same call, written as a flag -->$rows = $readings->cells(not header) // the same call, written as a flagThe script still runs, so this is a warning. Write not header rewrites it, and kscript check --fix does every one in a file.
Directive options are checked the same way: @on-click(toggle: $open, once: true) is written @on-click(toggle: $open, once), and @bind($name, trim: true) is written @bind($name, trim).