Error codes › property-order

Error codes

property-order

hint Style: how the model reads (archec vet)

What it means#

Properties out of their order (archec vet): fmt puts them in it.

In detail#

Write the properties of an element in the same order in every file. Then the eye knows where to look. The order is:

  1. what it is: description, text, objective;
  2. how it is classified: kind, layer, tags, status, priority…;
  3. its type: provides, sends, unit…;
  4. the rest;
  5. its traces: satisfies, verifies, derives…;
  6. its place on the canvas: at, size.

archec fmt puts them in this order.

How to fix it#

The message says what is wrong and where, and often what was meant (Did you mean …?). Change the model so that what this page describes no longer holds, then check again: archec check main.arche.

A hint: a suggestion; the model builds as it is.

A style finding: archec vet reports it, archec check does not; archec fmt --write writes the layout ones.

archec check --beginner says the most common messages in plain words, with the names that exist.

The automatic fix#

archec has no fix of its own for this code. When the message says Did you mean …?, VS Code offers that change (Quick Fix).

In the terminal#

archec explain property-order prints this explanation; archec explain style lists the codes of its area.