We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 719031f + 69fd1bf commit cb8d3faCopy full SHA for cb8d3fa
docs/site/reference/formatter-spec.md
@@ -52,11 +52,19 @@ original location.
52
53
If there are no changes to the original file, the formatter **MUST NOT** write to the original location.
54
55
-### 3. Idempotent
+### 3. Exit nonzero on error
56
+
57
+When something goes wrong when formatting (for example, the source code is
58
+syntactically invalid), the formatter **MUST** exit nonzero.
59
60
+The formatter _SHOULD_ print useful information about what went wrong to
61
+stderr.
62
63
+### 4. Idempotent
64
65
The formatter _SHOULD_ be idempotent. Meaning that it produces stable
66
outputs.
67
-### 4. Reliable
68
+### 5. Reliable
69
70
We expect the formatter to be reliable and not break the semantics of the formatted files.
0 commit comments