repometry 0.8.0 → 0.8.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 +23 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,37 +15,37 @@
|
|
|
15
15
|
|
|
16
16
|
Git can serve as a project’s single source of truth for code, tests, docs, and CI configuration. Repometry lets you keep coverage and maintainability metrics alongside your code, commit by commit.
|
|
17
17
|
|
|
18
|
-
##
|
|
18
|
+
## Demo
|
|
19
|
+
[https://idleware.github.io/repometry/](https://idleware.github.io/repometry/)
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
## Requirements
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
Node.js >=24
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
## Install
|
|
25
26
|
|
|
26
27
|
```sh
|
|
27
|
-
#
|
|
28
|
-
npx repometry
|
|
29
|
-
|
|
30
|
-
# Build history for the last 50 commits, oldest first, skipping saved inspections.
|
|
31
|
-
npx repometry analyze HEAD~50..HEAD --skip-saved
|
|
32
|
-
|
|
33
|
-
# Import coverage and scanner results. Repeat --import for each file.
|
|
34
|
-
npx repometry analyze --import lcov=coverage/lcov.info --import sarif=results.sarif
|
|
28
|
+
# Run without installing.
|
|
29
|
+
npx repometry help
|
|
35
30
|
|
|
36
|
-
#
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
# Export a static report to .repometry/report/html. Use -o DIR for another folder.
|
|
40
|
-
npx repometry report html
|
|
31
|
+
# Or install the repometry command.
|
|
32
|
+
npm install --global repometry
|
|
33
|
+
```
|
|
41
34
|
|
|
42
|
-
|
|
43
|
-
npx repometry store check --repair --from git:repometry
|
|
35
|
+
## Usage
|
|
44
36
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
Run these commands in your repository. Without an install, start each with `npx`.
|
|
38
|
+
|
|
39
|
+
| Command | What it does |
|
|
40
|
+
| --- | --- |
|
|
41
|
+
| `repometry analyze` | Analyze HEAD and save its inspection under `.repometry/`. |
|
|
42
|
+
| `repometry analyze HEAD~50..HEAD --skip-saved` | Build history for the last 50 commits, oldest first, skipping saved inspections. |
|
|
43
|
+
| `repometry analyze --import lcov=coverage/lcov.info --import sarif=results.sarif` | Import coverage and scanner results. Repeat `--import` for each file. |
|
|
44
|
+
| `repometry view` | Open the report locally on a free port. Use `--port 3030` to choose a port. |
|
|
45
|
+
| `repometry report html` | Export a static report to `.repometry/report/html`. Use `-o DIR` for another folder. |
|
|
46
|
+
| `repometry store check --repair --from git:repometry` | Check saved inspections. `--repair` restores missing data from a copy. |
|
|
47
|
+
| `repometry plugins` | List supported formats. |
|
|
48
|
+
| `repometry help analyze` | Get help for a command. |
|
|
49
49
|
|
|
50
50
|
A report shows everything the store holds, so publish it only where you would publish that data.
|
|
51
51
|
|