Skip to content

nameOfTeams

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 team naming convention.

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

Examples

Default

{
    "nameOfTeams": null
}

👍 Good

team add testObjective
team add TestObjective
team add test_objective
team add TEST_OBJECTIVE
team add test-objective

Snake Case

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

👍 Good

team add test_objective

👎 Bad

team add testObjective
team add TestObjective
team add TEST_OBJECTIVE
team add test-objective

History

This rule was introduced in DHP 2.0.0.

Clone this wiki locally