ears-wording
Ce que cela signifie#
A requirement the project's ears wording policy is over (ears wording for all, … for tags sw, … in "spec/**") whose text follows no EARS template: its statement — the first sentence or ; clause with "shall" ("doit", "doivent") — is read up to the verb: clauses opened by While / During / Tant que / Pendant / En <ÉTAT> (state-driven), When / Upon / After / Quand / Lorsque / Dès que / Sur / Au démarrage / À chaque (event-driven), If / Si / En cas de (unwanted), Where (optional), each closed by a comma (or "then" / "alors"), then the system in at most ten words. The warning says what it read, and what is missing: no "shall" (or "should", "must", "devrait" in its place), a first clause that is none of these, a subject too long. What follows the verb is free: a trigger there ("… dès que …") is accepted. A requirement with an ears sentence, or skip ears, is not read. docs/spec.md, "An EARS policy".
Comment le corriger#
Le message dit ce qui ne va pas et où, et souvent ce qui était voulu (Did you mean …?). Modifiez le modèle pour que ce que décrit cette page ne soit plus vrai, puis vérifiez à nouveau : archec check main.arche.
Un avertissement : le modèle se construit, mais quelque chose est sans doute faux.
archec check --beginner reformule les messages les plus courants en mots simples, avec les noms qui existent.
La correction automatique#
archec n’a pas de correction propre à ce code. Quand le message dit Did you mean …?, VS Code propose ce changement (Quick Fix).
Dans le terminal#
archec explain ears-wording affiche cette explication ; archec explain requirements liste les codes de son domaine.