KScript 문서
KO

언어

영어에서 자동 번역되었습니다. 원문은 영어입니다.

오류 코드

KS6024

이름으로 참 또는 거짓을 지정하는 예/아니요 옵션입니다. 켜기 또는 끄기만 있는 옵션은 플래그로 읽힙니다. 이름만 쓰면 참이고, 앞에 not를 붙이면 거짓이 됩니다.

<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 flag

이 스크립트는 여전히 실행되므로 이것은 경고입니다. Write not header는 이를 다시 씁니다. 그리고 kscript check --fix는 파일 내의 모든 항목을 처리합니다.