External services · rule
package.name_mismatch
Package's index names another package than its folder.
Area 11, External services; not declinable; the next step is usually the agent's.
A package's folder is its name in lower_snake_case and its version, so
its index gives the folder's name in UpperCamelCase:
/// Acme Couriers' booking API.package AcmeCourier.v1 { licence: Licence.mit jadpo: "1.0"}
error: `AcmeCourier.v1` is in the folder of `AcmeCouriers.v1` --> shared/providers/acme_couriers/v1/package.jadpo:2:9 |2 | package AcmeCourier.v1 { | ^^^^^^^^^^^^^^ the folder says `AcmeCouriers.v1` reason: A package's folder is its name in `lower_snake_case` and its version, `acme_couriers/v1`, so its name in code is `AcmeCouriers.v1`, the folder's in `UpperCamelCase`, and the index gives the same. next: Write `package AcmeCouriers.v1` (agent) rule: package.name_mismatch help: https://jadpo.dev/docs/errors/package.name_mismatchcheck failed: 1 error, 2 files
Markdown for agents: /docs/errors/package.name_mismatch.md.Built from Jadpo main at a707efb.