nbtStringQuote - ChenCMD/datapack-helper-plus-JP GitHub Wiki

ルールの詳細

⚠️ Diagnostic: これは、校閲機能によって使用される校閲ルールです。

🔧 Fixable: これは、校閲機能によって使用される校閲ルールです。

文字列の要素に引用符を必要とするかどうか。

  • (false): 必要なときのみ引用符で囲む。
  • (true): 常に引用符で囲む。

Default

{
    "nbtStringQuote": ["warning", true]
}

👍 良い例

summon minecraft:armor_stand ~ ~ ~ {Tags: ["foo"]}
summon minecraft:armor_stand ~ ~ ~ {Tags: ["crazy tag"]}

👎 悪い例

summon minecraft:armor_stand ~ ~ ~ {Tags: [foo]}

False

{
    "nbtStringQuote": ["warning", false]
}

👍 良い例

summon minecraft:armor_stand ~ ~ ~ {Tags: [foo]}
summon minecraft:armor_stand ~ ~ ~ {Tags: ["crazy tag"]}

👎 悪い例

summon minecraft:armor_stand ~ ~ ~ {Tags: ["foo"]}

無効化

{
    "nbtStringQuote": null
}

👍 良い例

summon minecraft:armor_stand ~ ~ ~ {Tags: [foo]}
summon minecraft:armor_stand ~ ~ ~ {Tags: ["foo"]}
summon minecraft:armor_stand ~ ~ ~ {Tags: ["crazy tag"]}

History

このルールはDHP 2.0.0で実装されました。

⚠️ **GitHub.com Fallback** ⚠️