You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Golden snapshot tests for AST, canonical model, and formatter output
@@ -167,6 +168,7 @@ Exit codes are CI-friendly:
167
168
168
169
-`validate` returns `0` for valid files and `1` for invalid files.
169
170
-`lint` returns `0` when findings contain only `warning` and `info`, and `1` when findings contain at least one `error`.
171
+
-`check` returns `0` only when validation passes, lint has no `error`, and formatting is canonical. Warnings and info findings alone do not fail `check`.
170
172
171
173
## Guides
172
174
@@ -176,11 +178,11 @@ Exit codes are CI-friendly:
176
178
177
179
## Near-term plan
178
180
179
-
1.Add `format --check` for CI and pre-commit workflows.
180
-
2.Show real JSON diagnostics examples in the README and diagnostics spec.
181
-
3. Add `orgscript check` as a combined quality command.
182
-
4.Improve diagnostics consistency across CLI commands.
183
-
5. Add an initial VS Code syntax highlighting scaffold.
181
+
1.Show real JSON diagnostics examples in the README and diagnostics spec.
182
+
2.Improve diagnostics consistency across CLI commands.
183
+
3. Add `orgscript check --json` for machine-readable combined quality output.
184
+
4.Add an initial VS Code syntax highlighting scaffold.
185
+
5. Add a first editor integration path that contributors can install locally.
184
186
185
187
See [`docs/roadmaps/v0.4.0.md`](docs/roadmaps/v0.4.0.md) for the current milestone plan.
186
188
@@ -196,8 +198,11 @@ orgscript format file.orgs --check
196
198
orgscript lint file.orgs
197
199
orgscript lint file.orgs --json
198
200
orgscript export json file.orgs
201
+
orgscript check file.orgs
199
202
```
200
203
204
+
`orgscript check` runs `validate`, `lint`, and `format --check` in that order and fails on validation errors, lint errors, or formatting drift. Warnings and info findings alone do not fail the command.
205
+
201
206
See [`docs/cli-v0.1-plan.md`](docs/cli-v0.1-plan.md) for the implementation plan.
0 commit comments