@brokkai/slopcop 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -6
- package/native/darwin_amd64/slopcop +0 -0
- package/native/darwin_arm64/slopcop +0 -0
- package/native/linux_amd64/slopcop +0 -0
- package/native/linux_arm64/slopcop +0 -0
- package/native/windows_amd64/slopcop.exe +0 -0
- package/native/windows_arm64/slopcop.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,9 +88,12 @@ pip install brokk-slopcop
|
|
|
88
88
|
|
|
89
89
|
`pipx install brokk-slopcop` or `uv tool install brokk-slopcop` puts it in an
|
|
90
90
|
environment of its own. The wheels carry the release binary, so no Go toolchain
|
|
91
|
-
is needed either.
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
is needed either.
|
|
92
|
+
|
|
93
|
+
The package is [`brokk-slopcop`](https://pypi.org/project/brokk-slopcop/),
|
|
94
|
+
published from this repository. Do not run `pip install slopcop`: PyPI's
|
|
95
|
+
`slopcop` is an unrelated project by someone else. The command `brokk-slopcop`
|
|
96
|
+
installs is still `slopcop`, and `python -m brokk_slopcop` runs the same binary.
|
|
94
97
|
|
|
95
98
|
### Release archive
|
|
96
99
|
|
|
@@ -492,7 +495,7 @@ Flags:
|
|
|
492
495
|
| `--base REV` | branch or revision the change started from; the base is its merge base with `HEAD` |
|
|
493
496
|
| `--base-exact REV` | exact base commit or revision, without a merge base |
|
|
494
497
|
| `--format human\|json\|sarif` | report format (default `human`) |
|
|
495
|
-
| `--fail-on never\|finding\|note\|warning\|error` | exit-1 threshold for new findings (default `finding`) |
|
|
498
|
+
| `--fail-on never\|finding\|note\|warning\|error` | exit-1 threshold for new static findings (default `finding`); a review finding exits `1` at every level but `never` |
|
|
496
499
|
| `--certainty definite\|all` | report and fail on only `definite` findings (default), or on `possible` and `heuristic` ones too |
|
|
497
500
|
| `--policy PATH` | repository-relative `.rqlp` file to evaluate (repeatable) |
|
|
498
501
|
| `--policy-id ID` | built-in policy ID (repeatable) |
|
|
@@ -592,7 +595,13 @@ and a completed static result with no new findings at or above
|
|
|
592
595
|
Warnings and notes are advisory for push approval, though they still exit `1`
|
|
593
596
|
by default. The Claude Code gate checks HEAD's tree, so
|
|
594
597
|
after checking a dirty tree, commit exactly that state. For demonstrably wrong
|
|
595
|
-
complete review findings, `slopcop override --reason "..."`
|
|
598
|
+
complete review findings, `slopcop override <rv-id> --reason "..."` overrides
|
|
599
|
+
one finding, by the `rv-` id in `review.findings`, for every later review in the
|
|
600
|
+
clone: check again and the reused review leaves it out, later reviewers are
|
|
601
|
+
told not to raise it, and a finding that repeats it, even reworded near the
|
|
602
|
+
same lines, is listed under `review.overridden` instead of failing the check.
|
|
603
|
+
`--undo <rv-id>` and `--list` manage them. Without an id,
|
|
604
|
+
`slopcop override --reason "..."` records acceptance
|
|
596
605
|
when the static half has no findings at or above the push level
|
|
597
606
|
and completed, was skipped, or did not run. Never override real bugs or failed or incomplete reviews.
|
|
598
607
|
|
|
@@ -733,7 +742,7 @@ whichever is used.
|
|
|
733
742
|
| Exit | Meaning |
|
|
734
743
|
| --- | --- |
|
|
735
744
|
| `0` | Check completed; no new finding crossed the `--fail-on` level |
|
|
736
|
-
| `1` | A new finding crossed `--fail-on` |
|
|
745
|
+
| `1` | A new static finding crossed `--fail-on`, or a reviewer reported a finding (unless `--fail-on never`); JSON `exitReason` says which |
|
|
737
746
|
| `2` | No new finding crossed `--fail-on`, but a check was incomplete; or the CLI or service failed |
|
|
738
747
|
| `3` | The check was still running when `--timeout` ran out |
|
|
739
748
|
| `4` | The service refused the check, and only a person can clear it |
|
|
@@ -748,6 +757,21 @@ interrupted check prints no report. Interrupted before it was sent, nothing
|
|
|
748
757
|
reached the service; after, a service that received it keeps running it, and
|
|
749
758
|
running the same check again picks up its result.
|
|
750
759
|
|
|
760
|
+
A reviewer's finding fails the check by default, under every `--fail-on` level
|
|
761
|
+
but `never`. Review findings carry a priority (`P0` to `P3`), not a static
|
|
762
|
+
severity, so `note`, `warning` and `error` do not filter them. They fail by
|
|
763
|
+
default because a script, CI job or agent loop that reads only the exit code
|
|
764
|
+
would otherwise pass a change a reviewer flagged. The static counts in
|
|
765
|
+
`summary` (`findings`, `newFindings`) never include them, so a check the review
|
|
766
|
+
alone fails can show `summary.findings: 0` and `staticStatus: clean` and still
|
|
767
|
+
exit `1`. JSON `exitReason` names what failed it, and stderr says so in every
|
|
768
|
+
format, with the count and where the review findings are listed. Fix the real
|
|
769
|
+
ones and check again. For a wrong one, `slopcop override <rv-id> --reason "..."`
|
|
770
|
+
and check again: the reused review leaves it out and later reviews do not
|
|
771
|
+
report it. `slopcop override --reason "..."` without an id approves the tree
|
|
772
|
+
for push but does not change the exit code; `--fail-on never` keeps review
|
|
773
|
+
findings, and static ones, from exiting `1`.
|
|
774
|
+
|
|
751
775
|
An inconclusive check, one that ran but could not prove there is nothing
|
|
752
776
|
more to find, never changes the exit code or the status. Complete proof is
|
|
753
777
|
rare in static analysis, typically at a library boundary, so this is the norm
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|