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

ルールの詳細

🎨 Stylistic: これは、フォーマッティングで使用されるスタイル規則です。

NBTのCompoundのコロンの前後に空白を入れる。 Enforce spacing around colons in NBT compounds.

  • (object) Root.コロンの前の空白の数
    • before: (数値)コロンの後の空白の数n.
    • after: (数値) the number of spaces after the colon.

Default

{
    "nbtCompoundColonSpacing": { "before": 0, "after": 1 }
}

👍 良い例

summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}

👎 悪い例

summon minecraft:armor_stand ~ ~ ~ {Invisible:1b}
summon minecraft:armor_stand ~ ~ ~ {Invisible : 1b}

Dense

{
    "nbtCompoundColonSpacing": { "before": 0, "after": 0 }
}

👍 良い例

summon minecraft:armor_stand ~ ~ ~ {Invisible:1b}

👎 悪い例

summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}
summon minecraft:armor_stand ~ ~ ~ {Invisible : 1b}

History

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

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