start-entities-uppercase
Rule Details
According to our naming conventions, to easily distinguish entity names from element names we recommend starting entity names with capital letters, which this rule ensures.
Examples
✅ Correct example
In the following example, the rule is satisfied because the entity name Books starts with a capital letter:
cds
namespace sap.capire.bookshop;
entity Books {
key ID : Integer;
@mandatory title : localized String(111);
}1
2
3
4
5
6
2
3
4
5
6
❌ Incorrect example
This example shows the rule reporting a warning because the entity name books starts with a lowercase letter:
cds
namespace sap.capire.bookshop;
// Entity name 'books' should start with an uppercase letter.
entity books {
key ID : Integer;
@mandatory title : localized String(111);
}1
2
3
4
5
6
7
2
3
4
5
6
7
Version
This rule was introduced in @sap/eslint-plugin-cds 1.0.4.