ErrorsProject layout and modules · rule
semantic.name_case
Name has the wrong case for its kind.
Area 1, Project layout and modules; not declinable; the next step is usually the agent's.
type Stock = Int { min: 0}function orderTotal(subtotal: Stock) -> Stock { return subtotal}
error Function orderTotal isn't written in lower_snake_case
--> checkout.jadpo:5:10
|5 | function orderTotal(subtotal: Stock) -> Stock { | ^^^^^^^^^^ should be `order_total`
- reason
- Types, entities and route groups are written in UpperCamelCase; functions, actions, queries, fields, variables and the rest in lower_snake_case.
- next
- Rename
orderTotaltoorder_total, here and where it's used (agent) - rule
- semantic.
name_ case - help
- https://jadpo.
dev/docs/errors/semantic. name_ case
Markdown for agents: /docs/errors/semantic.name_case.md.Built from Jadpo main at aee2e8f.