repometry 0.4.2 → 0.6.0
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 +36 -14
- package/package.json +1 -1
- package/target/main/resources/report/json/comparison-v1.schema.json +6 -6
- package/target/main/resources/report/json/file-metrics-v1.schema.json +7 -6
- package/target/main/resources/report/json/pull-review-v1.schema.json +5 -5
- package/target/main/resources/report/json/report-v2.schema.json +210 -11
- package/target/main/resources/report/json/repository-summary-v1.schema.json +161 -14
- package/target/main/resources/report/json/viewer-inspection-v1.schema.json +518 -6
- package/target/main/resources/viewer/styles.css +7 -2
- package/target/main/ts/api/git/changes.d.ts +1 -1
- package/target/main/ts/api/git/changes.js +3 -3
- package/target/main/ts/api/git/commit-metadata.js +6 -4
- package/target/main/ts/api/git/git.d.ts +2 -1
- package/target/main/ts/api/git/git.js +16 -4
- package/target/main/ts/api/git/inspection-source.d.ts +1 -1
- package/target/main/ts/api/git/inspection-source.js +4 -10
- package/target/main/ts/api/git/local.d.ts +1 -1
- package/target/main/ts/api/git/local.js +41 -7
- package/target/main/ts/api/process/docker-tool-runner.d.ts +13 -0
- package/target/main/ts/api/process/docker-tool-runner.js +108 -0
- package/target/main/ts/api/process/failure.d.ts +1 -0
- package/target/main/ts/api/process/failure.js +12 -0
- package/target/main/ts/api/process/plugin.d.ts +10 -0
- package/target/main/ts/api/process/plugin.js +96 -0
- package/target/main/ts/api/worker/remote-executor.d.ts +1 -1
- package/target/main/ts/api/worker/remote-executor.js +2 -2
- package/target/main/ts/api/worker/worker-protocol.d.ts +2 -2
- package/target/main/ts/api/worker/worker-protocol.js +8 -8
- package/target/main/ts/api/worker/worker.d.ts +1 -1
- package/target/main/ts/api/worker/worker.js +4 -4
- package/target/main/ts/cli/main.js +4 -3
- package/target/main/ts/cli/reporting.d.ts +1 -1
- package/target/main/ts/cli/reporting.js +1 -1
- package/target/main/ts/compose/analysis-files.d.ts +13 -0
- package/target/main/ts/compose/analysis-files.js +95 -0
- package/target/main/ts/compose/analysis-imports.d.ts +7 -0
- package/target/main/ts/compose/analysis-imports.js +34 -0
- package/target/main/ts/compose/analysis-report.d.ts +5 -0
- package/target/main/ts/compose/analysis-report.js +78 -0
- package/target/main/ts/compose/analysis-repository.d.ts +6 -0
- package/target/main/ts/compose/analysis-repository.js +61 -0
- package/target/main/ts/compose/analysis-results.d.ts +38 -0
- package/target/main/ts/compose/analysis-results.js +78 -0
- package/target/main/ts/compose/analysis-sources.d.ts +73 -0
- package/target/main/ts/compose/analysis-sources.js +47 -0
- package/target/main/ts/compose/analyze-snapshot.d.ts +3 -2
- package/target/main/ts/compose/analyze-snapshot.js +19 -197
- package/target/main/ts/compose/diff-coverage.d.ts +2 -0
- package/target/main/ts/compose/diff-coverage.js +6 -4
- package/target/main/ts/compose/inspect.d.ts +5 -0
- package/target/main/ts/compose/inspect.js +14 -7
- package/target/main/ts/compose/languages.d.ts +29 -0
- package/target/main/ts/compose/languages.js +87 -0
- package/target/main/ts/compose/sources.js +14 -12
- package/target/main/ts/core/engine/execute.d.ts +3 -1
- package/target/main/ts/core/engine/execute.js +14 -2
- package/target/main/ts/core/engine/manifest.d.ts +2 -2
- package/target/main/ts/core/engine/manifest.js +25 -5
- package/target/main/ts/core/engine/operation-cache.d.ts +14 -0
- package/target/main/ts/core/engine/operation-cache.js +66 -0
- package/target/main/ts/core/engine/plan.d.ts +3 -4
- package/target/main/ts/core/engine/plan.js +28 -11
- package/target/main/ts/core/engine/plugin.d.ts +10 -2
- package/target/main/ts/core/engine/plugin.js +1 -3
- package/target/main/ts/core/engine/report-products.js +2 -13
- package/target/main/ts/core/model/clone-source.d.ts +1 -0
- package/target/main/ts/core/model/clone-source.js +2 -1
- package/target/main/ts/core/model/code-structure.d.ts +5 -0
- package/target/main/ts/core/model/code-structure.js +10 -1
- package/target/main/ts/core/model/finding-ignore.js +1 -1
- package/target/main/ts/core/model/finding.js +1 -1
- package/target/main/ts/core/model/language.d.ts +10 -0
- package/target/main/ts/core/model/language.js +6 -0
- package/target/main/ts/core/model/line-coverage.d.ts +5 -1
- package/target/main/ts/core/model/line-coverage.js +14 -11
- package/target/main/ts/core/model/measurement.d.ts +7 -6
- package/target/main/ts/core/model/measurement.js +18 -7
- package/target/main/ts/core/model/plugin-data.d.ts +5 -0
- package/target/main/ts/core/model/plugin-data.js +15 -1
- package/target/main/ts/core/model/quality-summary.js +6 -5
- package/target/main/ts/core/model/report.d.ts +1 -2
- package/target/main/ts/core/model/report.js +0 -1
- package/target/main/ts/core/model/scanner-import.js +1 -1
- package/target/main/ts/core/model/snapshot.d.ts +1 -2
- package/target/main/ts/core/model/snapshot.js +5 -7
- package/target/main/ts/core/model/source.d.ts +3 -0
- package/target/main/ts/core/model/source.js +15 -0
- package/target/main/ts/core/ports/tool-runner.d.ts +18 -0
- package/target/main/ts/core/ports/tool-runner.js +2 -0
- package/target/main/ts/core/usecases/compare.js +61 -17
- package/target/main/ts/core/usecases/inspect.js +2 -2
- package/target/main/ts/plugin.d.ts +10 -3
- package/target/main/ts/plugin.js +4 -2
- package/target/main/ts/plugins/coverage/coverage.d.ts +5 -2
- package/target/main/ts/plugins/coverage/coverage.js +35 -10
- package/target/main/ts/plugins/duplication/duplication.js +10 -4
- package/target/main/ts/plugins/language-js/babel-provider.js +8 -2
- package/target/main/ts/plugins/language-js/extensions.d.ts +3 -0
- package/target/main/ts/plugins/language-js/extensions.js +4 -0
- package/target/main/ts/plugins/language-js/function-facts.d.ts +1 -0
- package/target/main/ts/plugins/language-js/function-facts.js +30 -4
- package/target/main/ts/plugins/language-js/js-security.js +3 -2
- package/target/main/ts/report/html/app/viewer-chart-bars.d.ts +11 -0
- package/target/main/ts/report/html/app/viewer-chart-bars.js +54 -0
- package/target/main/ts/report/html/app/viewer-chart-label.d.ts +15 -0
- package/target/main/ts/report/html/app/viewer-chart-label.js +43 -0
- package/target/main/ts/report/html/app/viewer-chart-line.d.ts +24 -0
- package/target/main/ts/report/html/app/viewer-chart-line.js +89 -0
- package/target/main/ts/report/html/app/viewer-chart-points.d.ts +49 -0
- package/target/main/ts/report/html/app/viewer-chart-points.js +74 -0
- package/target/main/ts/report/html/app/viewer-chart-scale.d.ts +21 -0
- package/target/main/ts/report/html/app/viewer-chart-scale.js +93 -0
- package/target/main/ts/report/html/app/viewer-chart-svg.d.ts +28 -0
- package/target/main/ts/report/html/app/viewer-chart-svg.js +41 -0
- package/target/main/ts/report/html/app/viewer-chart-time.d.ts +26 -0
- package/target/main/ts/report/html/app/viewer-chart-time.js +150 -0
- package/target/main/ts/report/html/app/viewer-chart-tip.d.ts +4 -0
- package/target/main/ts/report/html/app/viewer-chart-tip.js +210 -0
- package/target/main/ts/report/html/app/viewer-chart-x.d.ts +12 -0
- package/target/main/ts/report/html/app/viewer-chart-x.js +50 -0
- package/target/main/ts/report/html/app/viewer-chart.d.ts +4 -98
- package/target/main/ts/report/html/app/viewer-chart.js +16 -677
- package/target/main/ts/report/html/app/viewer-code-map.d.ts +27 -0
- package/target/main/ts/report/html/app/viewer-code-map.js +175 -0
- package/target/main/ts/report/html/app/viewer-columns.d.ts +38 -0
- package/target/main/ts/report/html/app/viewer-columns.js +92 -0
- package/target/main/ts/report/html/app/viewer-commit-picker.d.ts +12 -0
- package/target/main/ts/report/html/app/viewer-commit-picker.js +229 -0
- package/target/main/ts/report/html/app/viewer-commits.d.ts +5 -9
- package/target/main/ts/report/html/app/viewer-commits.js +17 -216
- package/target/main/ts/report/html/app/viewer-controls.d.ts +43 -0
- package/target/main/ts/report/html/app/viewer-controls.js +141 -0
- package/target/main/ts/report/html/app/viewer-copy.d.ts +17 -0
- package/target/main/ts/report/html/app/viewer-copy.js +64 -0
- package/target/main/ts/report/html/app/viewer-data.d.ts +1 -1
- package/target/main/ts/report/html/app/viewer-data.js +2 -29
- package/target/main/ts/report/html/app/viewer-diagnostics.d.ts +4 -0
- package/target/main/ts/report/html/app/viewer-diagnostics.js +60 -0
- package/target/main/ts/report/html/app/viewer-dom.d.ts +27 -0
- package/target/main/ts/report/html/app/viewer-dom.js +99 -0
- package/target/main/ts/report/html/app/viewer-file-aside.d.ts +19 -0
- package/target/main/ts/report/html/app/viewer-file-aside.js +124 -0
- package/target/main/ts/report/html/app/viewer-file-figures.d.ts +15 -0
- package/target/main/ts/report/html/app/viewer-file-figures.js +60 -0
- package/target/main/ts/report/html/app/viewer-file-source.d.ts +7 -0
- package/target/main/ts/report/html/app/viewer-file-source.js +119 -0
- package/target/main/ts/report/html/app/viewer-files.d.ts +2 -118
- package/target/main/ts/report/html/app/viewer-files.js +24 -2184
- package/target/main/ts/report/html/app/viewer-filter.d.ts +3 -51
- package/target/main/ts/report/html/app/viewer-filter.js +111 -450
- package/target/main/ts/report/html/app/viewer-hotspots.d.ts +4 -0
- package/target/main/ts/report/html/app/viewer-hotspots.js +131 -0
- package/target/main/ts/report/html/app/viewer-inspection.d.ts +69 -0
- package/target/main/ts/report/html/app/viewer-inspection.js +36 -0
- package/target/main/ts/report/html/app/viewer-issue-group.d.ts +27 -0
- package/target/main/ts/report/html/app/viewer-issue-group.js +174 -0
- package/target/main/ts/report/html/app/viewer-issues.d.ts +4 -0
- package/target/main/ts/report/html/app/viewer-issues.js +173 -0
- package/target/main/ts/report/html/app/viewer-language-bar.d.ts +9 -0
- package/target/main/ts/report/html/app/viewer-language-bar.js +72 -0
- package/target/main/ts/report/html/app/viewer-languages.d.ts +27 -0
- package/target/main/ts/report/html/app/viewer-languages.js +93 -0
- package/target/main/ts/report/html/app/viewer-layout.d.ts +14 -0
- package/target/main/ts/report/html/app/viewer-layout.js +134 -0
- package/target/main/ts/report/html/app/viewer-line-coverage.d.ts +47 -0
- package/target/main/ts/report/html/app/viewer-line-coverage.js +121 -0
- package/target/main/ts/report/html/app/viewer-locations.d.ts +16 -0
- package/target/main/ts/report/html/app/viewer-locations.js +31 -0
- package/target/main/ts/report/html/app/viewer-map-scale.d.ts +26 -0
- package/target/main/ts/report/html/app/viewer-map-scale.js +147 -0
- package/target/main/ts/report/html/app/viewer-map-shape.d.ts +42 -0
- package/target/main/ts/report/html/app/viewer-map-shape.js +102 -0
- package/target/main/ts/report/html/app/viewer-metric-format.d.ts +23 -0
- package/target/main/ts/report/html/app/viewer-metric-format.js +93 -0
- package/target/main/ts/report/html/app/viewer-metric-registry.d.ts +0 -20
- package/target/main/ts/report/html/app/viewer-metric-registry.js +7 -84
- package/target/main/ts/report/html/app/viewer-metrics-view.d.ts +4 -0
- package/target/main/ts/report/html/app/viewer-metrics-view.js +162 -0
- package/target/main/ts/report/html/app/viewer-metrics.d.ts +6 -1
- package/target/main/ts/report/html/app/viewer-metrics.js +53 -35
- package/target/main/ts/report/html/app/viewer-overview-cards.d.ts +12 -0
- package/target/main/ts/report/html/app/viewer-overview-cards.js +118 -0
- package/target/main/ts/report/html/app/viewer-overview-hotspots.d.ts +9 -0
- package/target/main/ts/report/html/app/viewer-overview-hotspots.js +173 -0
- package/target/main/ts/report/html/app/viewer-overview-lead.d.ts +12 -0
- package/target/main/ts/report/html/app/viewer-overview-lead.js +116 -0
- package/target/main/ts/report/html/app/viewer-profile-badges.d.ts +11 -0
- package/target/main/ts/report/html/app/viewer-profile-badges.js +119 -0
- package/target/main/ts/report/html/app/viewer-profile-table.d.ts +29 -0
- package/target/main/ts/report/html/app/viewer-profile-table.js +124 -0
- package/target/main/ts/report/html/app/viewer-profile.d.ts +2 -6
- package/target/main/ts/report/html/app/viewer-profile.js +6 -248
- package/target/main/ts/report/html/app/viewer-pull-sections.d.ts +4 -0
- package/target/main/ts/report/html/app/viewer-pull-sections.js +118 -0
- package/target/main/ts/report/html/app/viewer-pull-trend.d.ts +5 -0
- package/target/main/ts/report/html/app/viewer-pull-trend.js +63 -0
- package/target/main/ts/report/html/app/viewer-pulls.d.ts +0 -1
- package/target/main/ts/report/html/app/viewer-pulls.js +28 -178
- package/target/main/ts/report/html/app/viewer-query-field.d.ts +19 -0
- package/target/main/ts/report/html/app/viewer-query-field.js +203 -0
- package/target/main/ts/report/html/app/viewer-route.d.ts +34 -0
- package/target/main/ts/report/html/app/viewer-route.js +55 -0
- package/target/main/ts/report/html/app/viewer-shell.d.ts +20 -0
- package/target/main/ts/report/html/app/viewer-shell.js +116 -0
- package/target/main/ts/report/html/app/viewer-source-view.d.ts +49 -0
- package/target/main/ts/report/html/app/viewer-source-view.js +150 -0
- package/target/main/ts/report/html/app/viewer-source.d.ts +0 -84
- package/target/main/ts/report/html/app/viewer-source.js +7 -365
- package/target/main/ts/report/html/app/viewer-suggest.d.ts +13 -0
- package/target/main/ts/report/html/app/viewer-suggest.js +91 -0
- package/target/main/ts/report/html/app/viewer-sunburst.d.ts +5 -0
- package/target/main/ts/report/html/app/viewer-sunburst.js +40 -0
- package/target/main/ts/report/html/app/viewer-table-cells.d.ts +25 -0
- package/target/main/ts/report/html/app/viewer-table-cells.js +129 -0
- package/target/main/ts/report/html/app/viewer-table-rows.d.ts +54 -0
- package/target/main/ts/report/html/app/viewer-table-rows.js +95 -0
- package/target/main/ts/report/html/app/viewer-tokenizer.d.ts +16 -0
- package/target/main/ts/report/html/app/viewer-tokenizer.js +192 -0
- package/target/main/ts/report/html/app/viewer-totals.d.ts +14 -0
- package/target/main/ts/report/html/app/viewer-totals.js +89 -0
- package/target/main/ts/report/html/app/viewer-treemap.d.ts +24 -0
- package/target/main/ts/report/html/app/viewer-treemap.js +112 -0
- package/target/main/ts/report/html/app/viewer-trend-data.d.ts +54 -0
- package/target/main/ts/report/html/app/viewer-trend-data.js +109 -0
- package/target/main/ts/report/html/app/viewer-trend-nav.d.ts +5 -0
- package/target/main/ts/report/html/app/viewer-trend-nav.js +85 -0
- package/target/main/ts/report/html/app/viewer-trend-points.d.ts +30 -0
- package/target/main/ts/report/html/app/viewer-trend-points.js +128 -0
- package/target/main/ts/report/html/app/viewer-trend-series.d.ts +26 -0
- package/target/main/ts/report/html/app/viewer-trend-series.js +98 -0
- package/target/main/ts/report/html/app/viewer-trends.d.ts +2 -70
- package/target/main/ts/report/html/app/viewer-trends.js +41 -392
- package/target/main/ts/report/html/app/viewer.js +152 -663
- package/target/main/ts/report/html/site/export-site.d.ts +3 -4
- package/target/main/ts/report/html/site/export-site.js +24 -41
- package/target/main/ts/report/html/site/exported-server.js +2 -1
- package/target/main/ts/report/html/site/local-server.d.ts +1 -1
- package/target/main/ts/report/html/site/local-server.js +13 -19
- package/target/main/ts/report/html/site/projects.js +8 -17
- package/target/main/ts/report/json/projections/commit-summary.d.ts +2 -2
- package/target/main/ts/report/json/projections/commit-summary.js +18 -19
- package/target/main/ts/report/json/projections/file-metrics.js +31 -24
- package/target/main/ts/report/json/projections/inspection-context.js +10 -1
- package/target/main/ts/report/json/projections/inspection-details.d.ts +1 -1
- package/target/main/ts/report/json/projections/inspection-details.js +2 -2
- package/target/main/ts/report/json/projections/metric-values.d.ts +1 -0
- package/target/main/ts/report/json/projections/metric-values.js +15 -5
- package/target/main/ts/report/json/store/local-store.js +2 -12
- package/target/main/ts/report/json/store/operation-cache.d.ts +8 -0
- package/target/main/ts/report/json/store/operation-cache.js +32 -0
- package/target/main/ts/report/json/store/pull-review-store.js +1 -2
- package/target/main/ts/report/json/store/replace-file.d.ts +1 -0
- package/target/main/ts/report/json/store/replace-file.js +14 -0
- package/target/main/ts/report/json/validation/report.d.ts +1 -1
- package/target/main/ts/report/json/validation/report.js +10 -8
- package/target/main/ts/report/json/validation/summary-validation.js +1 -3
- package/target/main/ts/report/json/wire/file-metrics-model.d.ts +2 -0
- package/target/main/ts/report/json/wire/inspection-details-model.d.ts +0 -5
- package/target/main/ts/report/json/wire/public-history-model.d.ts +0 -6
- package/target/main/ts/report/json/wire/public-history-model.js +0 -1
- package/target/main/ts/report.d.ts +3 -3
- package/target/main/ts/report.js +2 -2
- package/target/main/resources/report/json/inspection-context-v1.schema.json +0 -172
- package/target/main/resources/report/json/public-history-v1.schema.json +0 -50
- package/target/main/resources/report/json/quality-history-v1.schema.json +0 -51
- package/target/main/resources/report/json/report-v1.schema.json +0 -65
- package/target/main/resources/report/json/viewer-details-v1.schema.json +0 -346
- package/target/main/ts/report/json/projections/public-history.d.ts +0 -4
- package/target/main/ts/report/json/projections/public-history.js +0 -17
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "urn:repometry:schema:viewer-details:1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": [
|
|
6
|
-
"schema",
|
|
7
|
-
"context",
|
|
8
|
-
"inspections"
|
|
9
|
-
],
|
|
10
|
-
"properties": {
|
|
11
|
-
"schema": {
|
|
12
|
-
"const": "urn:repometry:schema:viewer-details:1"
|
|
13
|
-
},
|
|
14
|
-
"context": {
|
|
15
|
-
"$ref": "urn:repometry:schema:inspection-context:1"
|
|
16
|
-
},
|
|
17
|
-
"inspections": {
|
|
18
|
-
"type": "object",
|
|
19
|
-
"patternProperties": {
|
|
20
|
-
"^(?:[a-f0-9]{40}|[a-f0-9]{64})$": {
|
|
21
|
-
"$ref": "#/$defs/inspection"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"additionalProperties": false
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"additionalProperties": false,
|
|
28
|
-
"$defs": {
|
|
29
|
-
"inspection": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"required": [
|
|
32
|
-
"metrics",
|
|
33
|
-
"functions",
|
|
34
|
-
"diagnostics"
|
|
35
|
-
],
|
|
36
|
-
"properties": {
|
|
37
|
-
"metrics": {
|
|
38
|
-
"$ref": "urn:repometry:schema:file-metrics:1"
|
|
39
|
-
},
|
|
40
|
-
"functions": {
|
|
41
|
-
"type": "array",
|
|
42
|
-
"items": {
|
|
43
|
-
"$ref": "urn:repometry:schema:inspection-context:1#/$defs/complexFunctions/items"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"diagnostics": {
|
|
47
|
-
"$ref": "urn:repometry:schema:report:1#/properties/diagnostics"
|
|
48
|
-
},
|
|
49
|
-
"findings": {
|
|
50
|
-
"$ref": "urn:repometry:schema:report:2#/properties/findings"
|
|
51
|
-
},
|
|
52
|
-
"lineCoverage": {
|
|
53
|
-
"$ref": "urn:repometry:schema:report:2#/$defs/lcovLines"
|
|
54
|
-
},
|
|
55
|
-
"components": {
|
|
56
|
-
"type": "array",
|
|
57
|
-
"items": {
|
|
58
|
-
"type": "object",
|
|
59
|
-
"required": [
|
|
60
|
-
"component",
|
|
61
|
-
"paths"
|
|
62
|
-
],
|
|
63
|
-
"additionalProperties": false,
|
|
64
|
-
"properties": {
|
|
65
|
-
"component": {
|
|
66
|
-
"type": "object",
|
|
67
|
-
"required": [
|
|
68
|
-
"name",
|
|
69
|
-
"pathGlobs"
|
|
70
|
-
],
|
|
71
|
-
"additionalProperties": false,
|
|
72
|
-
"properties": {
|
|
73
|
-
"name": {
|
|
74
|
-
"type": "string",
|
|
75
|
-
"minLength": 1,
|
|
76
|
-
"maxLength": 100
|
|
77
|
-
},
|
|
78
|
-
"description": {
|
|
79
|
-
"type": "string"
|
|
80
|
-
},
|
|
81
|
-
"pathGlobs": {
|
|
82
|
-
"type": "array",
|
|
83
|
-
"minItems": 1,
|
|
84
|
-
"items": {
|
|
85
|
-
"type": "string"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"paths": {
|
|
91
|
-
"type": "array",
|
|
92
|
-
"items": {
|
|
93
|
-
"type": "string"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"profile": {
|
|
100
|
-
"$ref": "#/$defs/profile"
|
|
101
|
-
},
|
|
102
|
-
"bands": {
|
|
103
|
-
"type": "object",
|
|
104
|
-
"additionalProperties": false,
|
|
105
|
-
"properties": {
|
|
106
|
-
"complexity": {
|
|
107
|
-
"type": "array",
|
|
108
|
-
"items": {
|
|
109
|
-
"type": "number"
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
"missedLines": {
|
|
113
|
-
"type": "array",
|
|
114
|
-
"items": {
|
|
115
|
-
"type": "number"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"duplication": {
|
|
119
|
-
"type": "array",
|
|
120
|
-
"items": {
|
|
121
|
-
"type": "number"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
"additionalProperties": false
|
|
128
|
-
},
|
|
129
|
-
"profile": {
|
|
130
|
-
"type": "object",
|
|
131
|
-
"additionalProperties": false,
|
|
132
|
-
"required": [
|
|
133
|
-
"id",
|
|
134
|
-
"extensions",
|
|
135
|
-
"excludedPaths",
|
|
136
|
-
"excludedDirectories",
|
|
137
|
-
"rules",
|
|
138
|
-
"duplication",
|
|
139
|
-
"debtModel",
|
|
140
|
-
"churn",
|
|
141
|
-
"ignore",
|
|
142
|
-
"analyzers"
|
|
143
|
-
],
|
|
144
|
-
"properties": {
|
|
145
|
-
"id": {
|
|
146
|
-
"type": [
|
|
147
|
-
"string",
|
|
148
|
-
"null"
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
|
-
"extensions": {
|
|
152
|
-
"type": "array",
|
|
153
|
-
"items": {
|
|
154
|
-
"type": "string"
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
"excludedPaths": {
|
|
158
|
-
"type": "array",
|
|
159
|
-
"items": {
|
|
160
|
-
"type": "string"
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"excludedDirectories": {
|
|
164
|
-
"type": "array",
|
|
165
|
-
"items": {
|
|
166
|
-
"type": "string"
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
"ruleCatalog": {
|
|
170
|
-
"type": "array",
|
|
171
|
-
"items": {
|
|
172
|
-
"type": "object",
|
|
173
|
-
"required": ["source", "kind", "rule", "category"],
|
|
174
|
-
"properties": {
|
|
175
|
-
"source": { "type": "string" },
|
|
176
|
-
"kind": { "enum": ["check", "scanner"] },
|
|
177
|
-
"rule": { "type": "string" },
|
|
178
|
-
"title": { "type": "string" },
|
|
179
|
-
"category": { "type": "string" },
|
|
180
|
-
"limit": { "type": "number" },
|
|
181
|
-
"minutesPerExcess": { "type": "number" },
|
|
182
|
-
"level": { "type": "string" },
|
|
183
|
-
"help": { "type": "string" }
|
|
184
|
-
},
|
|
185
|
-
"additionalProperties": false
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
"rules": {
|
|
189
|
-
"type": "array",
|
|
190
|
-
"items": {
|
|
191
|
-
"type": "object",
|
|
192
|
-
"additionalProperties": false,
|
|
193
|
-
"required": [
|
|
194
|
-
"plugin",
|
|
195
|
-
"rule",
|
|
196
|
-
"limit",
|
|
197
|
-
"minutesPerExcess"
|
|
198
|
-
],
|
|
199
|
-
"properties": {
|
|
200
|
-
"rule": {
|
|
201
|
-
"type": "string"
|
|
202
|
-
},
|
|
203
|
-
"limit": {
|
|
204
|
-
"type": "number"
|
|
205
|
-
},
|
|
206
|
-
"minutesPerExcess": {
|
|
207
|
-
"type": "number"
|
|
208
|
-
},
|
|
209
|
-
"plugin": {
|
|
210
|
-
"type": "string"
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
"duplication": {
|
|
216
|
-
"oneOf": [
|
|
217
|
-
{
|
|
218
|
-
"type": "null"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"type": "object",
|
|
222
|
-
"additionalProperties": false,
|
|
223
|
-
"required": [
|
|
224
|
-
"minCodeLines",
|
|
225
|
-
"minNodes",
|
|
226
|
-
"minutesPerRepeatedLine"
|
|
227
|
-
],
|
|
228
|
-
"properties": {
|
|
229
|
-
"minCodeLines": {
|
|
230
|
-
"type": "number"
|
|
231
|
-
},
|
|
232
|
-
"minNodes": {
|
|
233
|
-
"type": "number"
|
|
234
|
-
},
|
|
235
|
-
"minutesPerRepeatedLine": {
|
|
236
|
-
"type": "number"
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
]
|
|
241
|
-
},
|
|
242
|
-
"debtModel": {
|
|
243
|
-
"oneOf": [
|
|
244
|
-
{
|
|
245
|
-
"type": "null"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"type": "object",
|
|
249
|
-
"additionalProperties": false,
|
|
250
|
-
"required": [
|
|
251
|
-
"name",
|
|
252
|
-
"scale",
|
|
253
|
-
"exponent",
|
|
254
|
-
"minutesPerPersonMonth"
|
|
255
|
-
],
|
|
256
|
-
"properties": {
|
|
257
|
-
"name": {
|
|
258
|
-
"type": "string"
|
|
259
|
-
},
|
|
260
|
-
"scale": {
|
|
261
|
-
"type": "number"
|
|
262
|
-
},
|
|
263
|
-
"exponent": {
|
|
264
|
-
"type": "number"
|
|
265
|
-
},
|
|
266
|
-
"minutesPerPersonMonth": {
|
|
267
|
-
"type": "number"
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
]
|
|
272
|
-
},
|
|
273
|
-
"churn": {
|
|
274
|
-
"oneOf": [
|
|
275
|
-
{
|
|
276
|
-
"type": "null"
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"type": "object",
|
|
280
|
-
"additionalProperties": false,
|
|
281
|
-
"required": [
|
|
282
|
-
"lookbackDays",
|
|
283
|
-
"maxCommits"
|
|
284
|
-
],
|
|
285
|
-
"properties": {
|
|
286
|
-
"lookbackDays": {
|
|
287
|
-
"type": "number"
|
|
288
|
-
},
|
|
289
|
-
"maxCommits": {
|
|
290
|
-
"type": "number"
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
]
|
|
295
|
-
},
|
|
296
|
-
"ignore": {
|
|
297
|
-
"type": "array",
|
|
298
|
-
"items": {
|
|
299
|
-
"type": "object",
|
|
300
|
-
"additionalProperties": false,
|
|
301
|
-
"properties": {
|
|
302
|
-
"tool": {
|
|
303
|
-
"type": "string"
|
|
304
|
-
},
|
|
305
|
-
"rule": {
|
|
306
|
-
"type": "string"
|
|
307
|
-
},
|
|
308
|
-
"path": {
|
|
309
|
-
"type": "string"
|
|
310
|
-
},
|
|
311
|
-
"reason": {
|
|
312
|
-
"type": "string"
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
"analyzers": {
|
|
318
|
-
"type": "array",
|
|
319
|
-
"items": {
|
|
320
|
-
"type": "object",
|
|
321
|
-
"additionalProperties": false,
|
|
322
|
-
"required": [
|
|
323
|
-
"id",
|
|
324
|
-
"version",
|
|
325
|
-
"tools"
|
|
326
|
-
],
|
|
327
|
-
"properties": {
|
|
328
|
-
"id": {
|
|
329
|
-
"type": "string"
|
|
330
|
-
},
|
|
331
|
-
"version": {
|
|
332
|
-
"type": "string"
|
|
333
|
-
},
|
|
334
|
-
"tools": {
|
|
335
|
-
"type": "object",
|
|
336
|
-
"additionalProperties": {
|
|
337
|
-
"type": "string"
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Report } from '../validation/report.js';
|
|
2
|
-
import type { PublicHistory, QualityHistory } from '../wire/public-history-model.js';
|
|
3
|
-
export declare function publicHistory(reports: readonly Report[]): PublicHistory;
|
|
4
|
-
export declare function qualityHistory(reports: readonly Report[]): QualityHistory;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { qualitySummary } from '../../../core/model/quality-summary.js';
|
|
2
|
-
import { historyEntry } from './commit-summary.js';
|
|
3
|
-
import { historySchema } from '../wire/public-history-model.js';
|
|
4
|
-
export function publicHistory(reports) {
|
|
5
|
-
return {
|
|
6
|
-
schema: historySchema,
|
|
7
|
-
reports: reports.filter(report => report.subject.kind === 'commit').map(historyEntry),
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export function qualityHistory(reports) {
|
|
11
|
-
return {
|
|
12
|
-
schema: 'urn:repometry:schema:quality-history:1',
|
|
13
|
-
reports: Object.fromEntries(reports.filter(report => report.subject.kind === 'commit')
|
|
14
|
-
.map(report => [report.subject.id, qualitySummary(report)])),
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=public-history.js.map
|