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

ルールの詳細

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

NBTのCompoundのコンマの前後に空白を入れる。設定に関係なく、末尾のコンマの後の空白は常に削除されます。

  • (object) Root.
    • before: (数値) コンマの前の空白の数。
    • after: (数値) コンマの後の空白の数。

Default

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

👍 良い例

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

👎 悪い例

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

Dense

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

👍 良い例

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

👎 悪い例

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

History

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

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