Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.37 KB

start-elements-lowercase.md

File metadata and controls

50 lines (38 loc) · 1.37 KB
outline breadcrumbs status
2
2
CDS Lint - Rules Reference
released
<script setup> import PlaygroundBadge from '../components/PlaygroundBadge.vue' </script>

start-elements-lowercase

Rule Details

According to our naming conventions, to easily distinguish entity names from element names we recommend starting elements with a lowercase letter, which this rule ensures.

Examples

✅   Correct example

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

::: code-group <<< ../examples/start-elements-lowercase/correct/db/schema.cds#snippet{cds:line-numbers} [db/schema.cds] :::

❌   Incorrect example

In the next example, the rule will report a warning, because the element name Title starts with an uppercase letter:

::: code-group <<< ../examples/start-elements-lowercase/incorrect/db/schema.cds#snippet{ts:line-numbers} [db/schema.cds] :::

Version

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