Skip to content

Commit

Permalink
Add ObjectPropertyName as alias for ObjectPropertyNaming
Browse files Browse the repository at this point in the history
  • Loading branch information
atulgpt committed May 12, 2024
1 parent b553d95 commit d6c554d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class ObjectPropertyNaming(config: Config) : Rule(
"Property names inside objects should follow the naming convention set in the projects configuration."
) {

override val defaultRuleIdAliases: Set<String> = setOf("ObjectPropertyName")

@Configuration("naming pattern")
private val constantPattern: Regex by config("[A-Za-z][_A-Za-z0-9]*") { it.toRegex() }

Expand Down

0 comments on commit d6c554d

Please sign in to comment.