nbtPathQuoteType - SpyglassMC/Spyglass GitHub Wiki
🔧 Fixable: violations of this rule can be fixed by Code Actions.
Enforce the type of NBT path key quotation marks. Because of MC-175504 you should never use single quotes for NBT path keys.
- (
"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.
{
"nbtPathQuoteType": ["warning", "always double"]
}data get entity @s "Inventory"
data get entity @s "crazy\"key"data get entity @s 'Inventory'
data get entity @s 'crazy"key'{
"nbtPathQuoteType": null
}data get entity @s "Inventory"
data get entity @s "crazy\"key"
data get entity @s 'Inventory'
data get entity @s 'crazy"key'This rule was introduced in DHP 2.0.0.