@codacy/verity-cli 0.34.5-experimental.7268b07 → 0.34.5-experimental.a8bee86
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/bin/verity.js +3669 -3131
- package/data/skills/verity-init/SKILL.md +20 -6
- package/package.json +2 -2
|
@@ -36,10 +36,12 @@ Use this one report:
|
|
|
36
36
|
- **`blocked` is true** → show the `prerequisites[].remedy` lines and stop.
|
|
37
37
|
- **`hooks.versions.skew` is set** → tell the user first, in one line, with
|
|
38
38
|
`hooks.versions.skew.remedy`.
|
|
39
|
-
- **`artifacts.standard` is true** → this project
|
|
40
|
-
|
|
39
|
+
- **`artifacts.standard` or `artifacts.legacyStandard` is true** → this project
|
|
40
|
+
already has a Standard here. `legacyStandard` is an old GATE.md Standard at
|
|
41
|
+
`.gate/standard.yaml`: init moves it to `.verity/` first, then keeps it. Do not
|
|
42
|
+
ask question 2. Init keeps the Standard and sends no profile.
|
|
41
43
|
|
|
42
|
-
When
|
|
44
|
+
When both are false, also run:
|
|
43
45
|
|
|
44
46
|
```bash
|
|
45
47
|
verity standard history
|
|
@@ -98,8 +100,8 @@ contents of their repositories.
|
|
|
98
100
|
| `Create a new one with the built-in rules` | The new Standard becomes the next version for the whole team. It has the built-in rules only. Nothing is sent. |
|
|
99
101
|
|
|
100
102
|
**2b — "Let Verity write review rules for this repository?"** (only when
|
|
101
|
-
`artifacts.standard`
|
|
102
|
-
`unknown`)
|
|
103
|
+
`artifacts.standard` and `artifacts.legacyStandard` are both false, 2a does not
|
|
104
|
+
apply, and the status is `on` or `unknown`)
|
|
103
105
|
|
|
104
106
|
| Option | Description |
|
|
105
107
|
|---|---|
|
|
@@ -165,7 +167,8 @@ It prints one JSON object on stdout:
|
|
|
165
167
|
in a terminal later. Go to Step 3.
|
|
166
168
|
|
|
167
169
|
**After a new sign-in, check the Standard again.** If Step 0 could not run
|
|
168
|
-
`verity standard history` (it failed) and `artifacts.standard`
|
|
170
|
+
`verity standard history` (it failed) and `artifacts.standard` and
|
|
171
|
+
`artifacts.legacyStandard` are both false, run it
|
|
169
172
|
now. If it lists versions, ask question 2a now, in its own prompt. Its answer
|
|
170
173
|
replaces the answer to 2b. Also run `verity standard generate --status` again.
|
|
171
174
|
If it prints `off` or `unsupported`, the answer to 2b has no effect: pass
|
|
@@ -242,6 +245,15 @@ Summarise from this report and from init's output, not from memory:
|
|
|
242
245
|
commit;
|
|
243
246
|
- anything untracked, and that the staged removal is the user's to commit;
|
|
244
247
|
- sign-in state;
|
|
248
|
+
- formal verification, when init printed "Formal verification at push: on". Say
|
|
249
|
+
it as a fact, in init's words: at a push, Verity checks a small model of the
|
|
250
|
+
riskiest changed function and replays any counterexample on the real code;
|
|
251
|
+
that function's source is sent to Verity; only a reproduced bug blocks; turn
|
|
252
|
+
it off with `verity config formal off`. It is a default, like the moments. Do
|
|
253
|
+
not suggest turning it off, and do not connect it to the user's answers to
|
|
254
|
+
other questions;
|
|
255
|
+
- when init printed that the kept Standard has no project rules yet, that line
|
|
256
|
+
and its command (`verity standard generate`);
|
|
245
257
|
- each line of `next`, if any.
|
|
246
258
|
|
|
247
259
|
---
|
|
@@ -254,3 +266,5 @@ Summarise from this report and from init's output, not from memory:
|
|
|
254
266
|
- **Do not answer a question for the user**, and do not leave a flag off because
|
|
255
267
|
it seems obvious. An omitted answer is an unattended one.
|
|
256
268
|
- **Do not run plain `verity login`.** See Step 2.
|
|
269
|
+
- **Do not advise turning off a default** (the moments, formal verification)
|
|
270
|
+
unless the user asks. Say what it does and how to change it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codacy/verity-cli",
|
|
3
|
-
"version": "0.34.5-experimental.
|
|
3
|
+
"version": "0.34.5-experimental.a8bee86",
|
|
4
4
|
"description": "CLI for Verity quality gate service",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"homepage": "https://verity.md",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"tree-sitter-javascript": "0.25.0",
|
|
38
38
|
"tree-sitter-python": "0.25.0",
|
|
39
39
|
"tree-sitter-typescript": "0.23.2",
|
|
40
|
-
"tsx": "^4.
|
|
40
|
+
"tsx": "^4.23.15",
|
|
41
41
|
"typescript": "^5.4",
|
|
42
42
|
"web-tree-sitter": "0.27.0"
|
|
43
43
|
},
|