Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ the JSON schema is versioned separately (`schema_version` in round files).

## Unreleased

### Interop with overfull 4.0

- `docs/interop.md` records overfull 4.0's exit code `70` for internal errors
(`EX_SOFTWARE`); `2` is now a usage error only in both tools. Still Interop v1: a
new tool-specific code is additive.

### Maintenance

- Dependabot sends one weekly pull request for every ecosystem (GitHub Actions,
Expand Down
7 changes: 4 additions & 3 deletions docs/interop.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,15 @@ the item's confidence is `exact`, or when the item has no confidence field.
|---|---|---|---|
| `0` | Success, nothing needs action | Success | Pass |
| `1` | The tool found something that needs action | Open items remain (only with `--fail-on-open`) | A check failed, or nothing was checked |
| `2` | Usage error | Usage error | Usage error or internal error |
| `2` | Usage error | Usage error | Usage error |

Codes above `2` are specific to one tool:

| Code | Tool | Meaning |
|---|---|---|
| `3` | proofback | Unreadable or invalid input |
| `4` | proofback | Refused write (changed anchor, encoding, path outside the project) |
| `70` | overfull | Internal error (`EX_SOFTWARE`), since overfull 4.0 |

A consumer treats any code other than `0`, `1` and `2` as a failure of the run, and
reads the tool's own documentation for the detail.
Expand Down Expand Up @@ -143,13 +144,13 @@ Current output of each tool compared with this specification.

### overfull

Tracked in overfull issue 136 (fixed in overfull 3.3.0); listed here so both files agree.
Tracked in overfull issues 136 (fixed in 3.3.0) and 142 (fixed in 4.0); listed here so both files agree.

| # | Difference | Kind | Resolution |
|---|---|---|---|
| O1 | `Problem.location` had no `column`, `end_line`, `end_column` | Additive | Fixed in 3.3.0: the location object has all six fields; `anonymity-link`, `figure-missing-alt` (TikZ) and PDF findings placed by proofback's locator fill the range; SARIF regions carry them |
| O2 | The report had no `schema_version` | Additive | Fixed in 3.3.0: every `--json` object starts with `tool`, `version` and `schema_version` (`1`) |
| O3 | Exit code `2` covers both usage and internal errors | Changes an exit code | Recorded; a separate internal-error code waits for v4 (overfull issue 142) |
| O3 | Exit code `2` covered both usage and internal errors | Changes an exit code | Fixed in 4.0: internal errors exit with `70`; `2` is a usage error only |
| O4 | SARIF results have no `partialFingerprints` | Allowed by §4 (no stable id) | No change |
| O5 | `explain --list --json` prints an array, so it cannot carry the top-level fields | Allowed: §5 covers JSON objects only | No change |

Expand Down
Loading