Error codes › unused

Error codes

unused

hint Names and references

What it means#

A message, type or component definition never referenced.

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.

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

The automatic fix#

Removed (offered, not applied).

It guesses what to write, or removes something: VS Code offers it (Quick Fix), and archec fix leaves it unless you name its code — archec fix main.arche --only unused.

In the terminal#

archec explain unused prints this explanation; archec explain names lists the codes of its area.