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

ルールの詳細

⚠️ Diagnostic: これは、校閲機能によって使用される校閲ルールです。

スコアボードオブジェクトに一貫した命名規則を適用します。

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

Default

{
    "nameOfObjectives": null
}

👍 良い例

scoreboard objectives add testObjective dummy
scoreboard objectives add TestObjective dummy
scoreboard objectives add test_objective dummy
scoreboard objectives add TEST_OBJECTIVE dummy
scoreboard objectives add test-objective dummy

Camel Case

{
    "nameOfObjectives": ["warning", "camelCase"]
}

👍 良い例

scoreboard objectives add testObjective dummy

👎 悪い例

scoreboard objectives add TestObjective dummy
scoreboard objectives add test_objexctive dummy
scoreboard objectives add TEST_OBJECTIVE dummy
scoreboard objectives add test-objective dummy

History

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

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