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

ルールの詳細

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

NBTのCompoundの波括弧内に空白を入れる。

  • (object) Root.
    • inside: (数値) 括弧内の空白の数。
    • zeroValue: (数値) 任意。括弧内のNBTのCompoundが空({})である場合の空白の数。
    • oneValue: (数値) 任意。括弧内のNBTのCompoundが1つのみの場合の括弧内の空白の数。指定されていない場合はinsideと同じ数値を使用します。

Default

{
    "nbtCompoundBracketSpacing": { "inside": 0 }
}

👍 良い例

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

👎 悪い例

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

Spacious

{
    "nbtCompoundBracketSpacing": { "inside": 1, "zeroValue": 0 }
}

👍 良い例

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

👎 悪い例

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

History

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

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