@operad-io/review-grading 0.0.1 → 0.1.1
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 +7 -31
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,37 +1,13 @@
|
|
|
1
1
|
# @operad-io/review-grading
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
whose flow reviews calls
|
|
3
|
+
**Review report grading.** Reads a repository's `.operad/review.json`, which sets how a reviewer's findings are graded.
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
readReviewGrading(repositoryPath, flowName): Grading
|
|
8
|
-
```
|
|
5
|
+
This package is part of [operad](https://github.com/operad-io/operad). Most people install only [`@operad-io/cli`](https://www.npmjs.com/package/@operad-io/cli).
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
shared helpers. `review.schema.json` is the file's JSON Schema.
|
|
7
|
+
## Documentation
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"default": { "fixLevel": "major" },
|
|
17
|
-
"flows": {
|
|
18
|
-
"dev": {
|
|
19
|
-
"levels": { "critical": "…", "major": "…", "minor": "…" },
|
|
20
|
-
"rules": ["…"],
|
|
21
|
-
"fixLevel": "major"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
```
|
|
9
|
+
- User guide: [docs/user/dev.md](https://github.com/operad-io/operad/blob/main/docs/user/dev.md)
|
|
10
|
+
- Website: <https://operad.io>
|
|
11
|
+
- Developer reference: `REFERENCE.md` in this directory
|
|
26
12
|
|
|
27
|
-
|
|
28
|
-
(`levels` per level; `rules` as a whole). A missing file gives an empty grading,
|
|
29
|
-
so the plugin adds no grading text and keeps its own fix level. An invalid file
|
|
30
|
-
throws a `ReviewGradingError` whose message names `review.json` and what is
|
|
31
|
-
wrong.
|
|
32
|
-
|
|
33
|
-
| field | meaning |
|
|
34
|
-
|---|---|
|
|
35
|
-
| `levels.critical`, `levels.major`, `levels.minor` | what each severity means, given to the reviewer verbatim |
|
|
36
|
-
| `rules` | rules for grading, given to the reviewer verbatim |
|
|
37
|
-
| `fixLevel` | the lowest severity that fails a review; wins over a plugin's own setting |
|
|
13
|
+
MIT licensed.
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operad-io/review-grading",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./src/index.ts"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@operad-io/engine": "0.
|
|
9
|
+
"@operad-io/engine": "0.1.1"
|
|
10
10
|
},
|
|
11
|
-
"description": "operad: review report grading
|
|
11
|
+
"description": "operad: review report grading",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "git+https://github.com/operad-io/operad.git",
|