-
Notifications
You must be signed in to change notification settings - Fork 33
nbtCompoundKeyQuoteType
SPGoding edited this page Apr 26, 2020
·
1 revision
🔧 Fixable: violations of this rule can be fixed by Code Actions.
Enforce the type of NBT compound key quotation marks.
- (
"always single"
): always uses single quotation marks ('
). - (
"always double"
): always uses double quotation marks ("
). - (
"prefer single"
): always uses single quotation marks ('
) unless there are single quotation marks in the string. - (
"prefer double"
): always uses double quotation marks ("
) unless there are double quotation marks in the string.
{
"nbtCompoundKeyQuoteType": ["warning", "prefer double"]
}
summon minecraft:armor_stand ~ ~ ~ {"Invisible": 1b}
summon minecraft:armor_stand ~ ~ ~ {"crazy'key": 1b}
summon minecraft:armor_stand ~ ~ ~ {'crazy"key': 1b}
summon minecraft:armor_stand ~ ~ ~ {'Invisible': 1b}
summon minecraft:armor_stand ~ ~ ~ {'crazy\'key': 1b}
summon minecraft:armor_stand ~ ~ ~ {"crazy\"key": 1b}
{
"nbtCompoundKeyQuoteType": ["warning", "always double"]
}
summon minecraft:armor_stand ~ ~ ~ {"Invisible": 1b}
summon minecraft:armor_stand ~ ~ ~ {"crazy'key": 1b}
summon minecraft:armor_stand ~ ~ ~ {"crazy\"key": 1b}
summon minecraft:armor_stand ~ ~ ~ {'Invisible': 1b}
summon minecraft:armor_stand ~ ~ ~ {'crazy\'key': 1b}
summon minecraft:armor_stand ~ ~ ~ {'crazy"key': 1b}
{
"nbtCompoundKeyQuoteType": null
}
summon minecraft:armor_stand ~ ~ ~ {"Invisible": 1b}
summon minecraft:armor_stand ~ ~ ~ {'Invisible': 1b}
summon minecraft:armor_stand ~ ~ ~ {"crazy'key": 1b}
summon minecraft:armor_stand ~ ~ ~ {'crazy\'key': 1b}
summon minecraft:armor_stand ~ ~ ~ {"crazy\"key": 1b}
summon minecraft:armor_stand ~ ~ ~ {'crazy"key': 1b}
This rule was introduced in DHP 2.0.0.