Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Explanation

Sharing some naming conventions is a key point to make it possible for a team to efficiently collaborate. This rule allows to check that all element names match a provided regular expression.

...

We estimate that resolving this issue will on average take 5 minutes.

Parameters

namingConvention

The regex that element names should comply with.

Default value: ^[A-Z][a-zA-Z]+$

Example

The following examples use the default naming convention.

...

  • elementName
  • ElementName1
  • Element_name
  • E

User suggested regex

Some of our customers use other regular expressions in their project, which you are very much allowed to. A suggestion we got was the following expression:

...