---
outline: [2,2]
---

<script setup>
  import PlaygroundBadge from '../../components/PlaygroundBadge.vue'
</script>

# start-elements-lowercase

## Rule Details

According to our [naming conventions](../../../../guides/domain/index#naming-conventions), to easily distinguish entity names from element names we recommend starting elements with a *lowercase* letter, which this rule ensures.

## Examples

#### ✅ &nbsp; Correct example

In the following example, the rule is satisfied because the element name `title` starts with a lowercase letter:

::: code-group
<<< correct/db/schema.cds{cds:line-numbers} [db/schema.cds]
:::
<PlaygroundBadge
  name="start-elements-lowercase"
  kind="correct"
  :rules="{'@sap/cds/start-elements-lowercase': 'warn'}"
  :files="['schema.cds']"
/>

#### ❌ &nbsp; Incorrect example

This example shows the rule reporting a warning because the element name `Title` starts with an uppercase letter:

::: code-group
<<< incorrect/db/schema.cds{ts:line-numbers} [db/schema.cds]
:::
<PlaygroundBadge
  name="start-elements-lowercase"
  kind="incorrect"
  :rules="{'@sap/cds/start-elements-lowercase': 'warn'}"
  :files="['db/schema.cds']"
/>

## Version
This rule was introduced in `@sap/eslint-plugin-cds 1.0.4`.