KS6024
Uma opção de sim/não definida como true ou false pelo nome. Uma opção que só pode estar ativada ou desativada funciona como uma flag: o nome dela sozinho significa true, e not na frente significa 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 flagO script ainda é executado, então isto é um aviso. Escreva not header reescreve-o, e kscript check --fix faz todos em um arquivo.
As opções de diretiva são verificadas da mesma forma: @on-click(toggle: $open, once: true) é escrito @on-click(toggle: $open, once), e @bind($name, trim: true) é escrito @bind($name, trim).