Skip to content

nameOfTags

SPGoding edited this page Apr 26, 2020 · 1 revision

Rule Details

⚠️ Diagnostic: this is a diagnostic rule used by the diagnostic feature.

Enforce a consistent entity tag naming convention.

  • ("camelCase")
  • ("PascalCase")
  • ("snake_case")
  • ("SCREAMING_SNAKE_CASE")
  • ("kebab-case")

Examples

Default

{
    "nameOfTags": null
}

👍 Good

tag @s add testObjective
tag @s add TestObjective
tag @s add test_objective
tag @s add TEST_OBJECTIVE
tag @s add test-objective

Snake Case

{
    "nameOfTags": ["warning", "snake_case"]
}

👍 Good

tag @s add test_objective

👎 Bad

tag @s add testObjective
tag @s add TestObjective
tag @s add TEST_OBJECTIVE
tag @s add test-objective

History

This rule was introduced in DHP 2.0.0.

Clone this wiki locally