warning naming
What it means#
Names should follow part IV.2: UpperCamelCase for types, interfaces, services, actors, topics and enum variants; lowerCamelCase for functions, methods, variables, fields and parameters; UPPER_SNAKE_CASE for constants and static; snake_case for modules and packages. oxl fmt does not rename; the analyzer warns.
Example#
fn PlaceOrder() { } // <- naming (functions use lowerCamelCase)
data order_item { id: u64 } // <- naming (types use UpperCamelCase)error
naming
How to fix#
fn placeOrder() { }
data OrderItem { id: u64 }Rename the item to the convention. Renaming a public item is a breaking API change for packages that depend on it.