repometry 0.5.0 → 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.
Files changed (115) hide show
  1. package/README.md +35 -17
  2. package/package.json +1 -1
  3. package/target/main/resources/report/json/comparison-v1.schema.json +6 -6
  4. package/target/main/resources/report/json/file-metrics-v1.schema.json +7 -6
  5. package/target/main/resources/report/json/pull-review-v1.schema.json +5 -5
  6. package/target/main/resources/report/json/report-v2.schema.json +197 -10
  7. package/target/main/resources/report/json/repository-summary-v1.schema.json +161 -14
  8. package/target/main/resources/report/json/viewer-inspection-v1.schema.json +518 -6
  9. package/target/main/resources/viewer/styles.css +5 -0
  10. package/target/main/ts/api/git/changes.d.ts +1 -1
  11. package/target/main/ts/api/git/changes.js +3 -3
  12. package/target/main/ts/api/git/commit-metadata.js +6 -4
  13. package/target/main/ts/api/git/git.d.ts +1 -1
  14. package/target/main/ts/api/git/git.js +4 -4
  15. package/target/main/ts/api/git/inspection-source.d.ts +1 -1
  16. package/target/main/ts/api/git/inspection-source.js +3 -3
  17. package/target/main/ts/api/git/local.d.ts +1 -1
  18. package/target/main/ts/api/git/local.js +4 -4
  19. package/target/main/ts/api/worker/remote-executor.d.ts +1 -1
  20. package/target/main/ts/api/worker/remote-executor.js +2 -2
  21. package/target/main/ts/api/worker/worker-protocol.d.ts +2 -2
  22. package/target/main/ts/api/worker/worker-protocol.js +8 -8
  23. package/target/main/ts/api/worker/worker.d.ts +1 -1
  24. package/target/main/ts/api/worker/worker.js +4 -4
  25. package/target/main/ts/cli/main.js +4 -3
  26. package/target/main/ts/cli/reporting.d.ts +1 -1
  27. package/target/main/ts/cli/reporting.js +1 -1
  28. package/target/main/ts/compose/analysis-files.d.ts +13 -0
  29. package/target/main/ts/compose/analysis-files.js +95 -0
  30. package/target/main/ts/compose/analysis-imports.d.ts +7 -0
  31. package/target/main/ts/compose/analysis-imports.js +34 -0
  32. package/target/main/ts/compose/analysis-report.d.ts +5 -0
  33. package/target/main/ts/compose/analysis-report.js +78 -0
  34. package/target/main/ts/compose/analysis-repository.d.ts +6 -0
  35. package/target/main/ts/compose/analysis-repository.js +61 -0
  36. package/target/main/ts/compose/analysis-results.d.ts +38 -0
  37. package/target/main/ts/compose/analysis-results.js +78 -0
  38. package/target/main/ts/compose/analysis-sources.d.ts +73 -0
  39. package/target/main/ts/compose/analysis-sources.js +47 -0
  40. package/target/main/ts/compose/analyze-snapshot.d.ts +2 -2
  41. package/target/main/ts/compose/analyze-snapshot.js +19 -250
  42. package/target/main/ts/compose/diff-coverage.d.ts +2 -0
  43. package/target/main/ts/compose/diff-coverage.js +6 -4
  44. package/target/main/ts/compose/inspect.js +8 -5
  45. package/target/main/ts/compose/languages.d.ts +29 -0
  46. package/target/main/ts/compose/languages.js +87 -0
  47. package/target/main/ts/compose/sources.js +14 -12
  48. package/target/main/ts/core/engine/manifest.d.ts +2 -2
  49. package/target/main/ts/core/engine/manifest.js +25 -5
  50. package/target/main/ts/core/engine/plan.d.ts +2 -4
  51. package/target/main/ts/core/engine/plan.js +13 -15
  52. package/target/main/ts/core/engine/plugin.d.ts +2 -1
  53. package/target/main/ts/core/model/clone-source.d.ts +1 -0
  54. package/target/main/ts/core/model/clone-source.js +1 -0
  55. package/target/main/ts/core/model/code-structure.d.ts +2 -0
  56. package/target/main/ts/core/model/code-structure.js +6 -0
  57. package/target/main/ts/core/model/language.d.ts +10 -0
  58. package/target/main/ts/core/model/language.js +6 -0
  59. package/target/main/ts/core/model/measurement.d.ts +7 -6
  60. package/target/main/ts/core/model/measurement.js +17 -6
  61. package/target/main/ts/core/model/plugin-data.d.ts +3 -0
  62. package/target/main/ts/core/model/quality-summary.js +5 -4
  63. package/target/main/ts/core/model/report.d.ts +1 -2
  64. package/target/main/ts/core/model/report.js +0 -1
  65. package/target/main/ts/core/model/snapshot.d.ts +0 -2
  66. package/target/main/ts/core/model/snapshot.js +0 -6
  67. package/target/main/ts/core/usecases/compare.js +61 -17
  68. package/target/main/ts/core/usecases/inspect.js +2 -2
  69. package/target/main/ts/plugin.d.ts +3 -2
  70. package/target/main/ts/plugin.js +1 -1
  71. package/target/main/ts/plugins/duplication/duplication.js +10 -4
  72. package/target/main/ts/plugins/language-js/babel-provider.js +8 -2
  73. package/target/main/ts/plugins/language-js/extensions.d.ts +3 -0
  74. package/target/main/ts/plugins/language-js/extensions.js +4 -0
  75. package/target/main/ts/plugins/language-js/js-security.js +3 -2
  76. package/target/main/ts/report/html/app/viewer-data.d.ts +1 -1
  77. package/target/main/ts/report/html/app/viewer-data.js +2 -29
  78. package/target/main/ts/report/html/app/viewer-metric-registry.js +7 -7
  79. package/target/main/ts/report/html/app/viewer-overview-cards.js +8 -2
  80. package/target/main/ts/report/html/app/viewer-route.d.ts +2 -2
  81. package/target/main/ts/report/html/app/viewer-route.js +3 -3
  82. package/target/main/ts/report/html/app/viewer-trend-data.d.ts +6 -1
  83. package/target/main/ts/report/html/app/viewer-trend-data.js +6 -2
  84. package/target/main/ts/report/html/app/viewer.js +3 -3
  85. package/target/main/ts/report/html/site/export-site.d.ts +3 -4
  86. package/target/main/ts/report/html/site/export-site.js +24 -41
  87. package/target/main/ts/report/html/site/exported-server.js +2 -1
  88. package/target/main/ts/report/html/site/local-server.d.ts +1 -1
  89. package/target/main/ts/report/html/site/local-server.js +13 -19
  90. package/target/main/ts/report/html/site/projects.js +8 -17
  91. package/target/main/ts/report/json/projections/commit-summary.d.ts +2 -2
  92. package/target/main/ts/report/json/projections/commit-summary.js +18 -19
  93. package/target/main/ts/report/json/projections/file-metrics.js +31 -24
  94. package/target/main/ts/report/json/projections/inspection-context.js +10 -1
  95. package/target/main/ts/report/json/projections/inspection-details.d.ts +1 -1
  96. package/target/main/ts/report/json/projections/inspection-details.js +2 -2
  97. package/target/main/ts/report/json/projections/metric-values.d.ts +1 -0
  98. package/target/main/ts/report/json/projections/metric-values.js +15 -5
  99. package/target/main/ts/report/json/store/pull-review-store.js +1 -2
  100. package/target/main/ts/report/json/validation/report.d.ts +1 -1
  101. package/target/main/ts/report/json/validation/report.js +10 -8
  102. package/target/main/ts/report/json/validation/summary-validation.js +1 -3
  103. package/target/main/ts/report/json/wire/file-metrics-model.d.ts +2 -0
  104. package/target/main/ts/report/json/wire/inspection-details-model.d.ts +0 -5
  105. package/target/main/ts/report/json/wire/public-history-model.d.ts +0 -6
  106. package/target/main/ts/report/json/wire/public-history-model.js +0 -1
  107. package/target/main/ts/report.d.ts +2 -3
  108. package/target/main/ts/report.js +1 -2
  109. package/target/main/resources/report/json/inspection-context-v1.schema.json +0 -172
  110. package/target/main/resources/report/json/public-history-v1.schema.json +0 -50
  111. package/target/main/resources/report/json/quality-history-v1.schema.json +0 -51
  112. package/target/main/resources/report/json/report-v1.schema.json +0 -65
  113. package/target/main/resources/report/json/viewer-details-v1.schema.json +0 -346
  114. package/target/main/ts/report/json/projections/public-history.d.ts +0 -4
  115. package/target/main/ts/report/json/projections/public-history.js +0 -17
@@ -1,172 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:repometry:schema:inspection-context:1",
4
- "type": "object",
5
- "patternProperties": {
6
- "^(?:[a-f0-9]{40}|[a-f0-9]{64})$": {
7
- "$ref": "#/$defs/inspectionContext"
8
- }
9
- },
10
- "additionalProperties": false,
11
- "$defs": {
12
- "complexFunctions": {
13
- "type": "array",
14
- "maxItems": 5,
15
- "items": {
16
- "type": "object",
17
- "required": [
18
- "name",
19
- "path",
20
- "line",
21
- "complexity"
22
- ],
23
- "properties": {
24
- "name": {
25
- "type": "string"
26
- },
27
- "path": {
28
- "type": "string"
29
- },
30
- "line": {
31
- "type": [
32
- "integer",
33
- "null"
34
- ],
35
- "minimum": 1
36
- },
37
- "complexity": {
38
- "type": "number"
39
- }
40
- },
41
- "additionalProperties": false
42
- }
43
- },
44
- "inspectionContext": {
45
- "type": "object",
46
- "required": [
47
- "exclusions",
48
- "boundary"
49
- ],
50
- "properties": {
51
- "exclusions": {
52
- "type": [
53
- "object",
54
- "null"
55
- ],
56
- "required": [
57
- "paths",
58
- "directories"
59
- ],
60
- "properties": {
61
- "paths": {
62
- "type": "array",
63
- "items": {
64
- "type": "string"
65
- }
66
- },
67
- "directories": {
68
- "type": "array",
69
- "items": {
70
- "type": "string"
71
- }
72
- }
73
- },
74
- "additionalProperties": false
75
- },
76
- "boundary": {
77
- "enum": [
78
- null,
79
- "changed",
80
- "unavailable"
81
- ]
82
- },
83
- "scanners": {
84
- "type": "array",
85
- "items": {
86
- "type": "object",
87
- "required": [
88
- "name",
89
- "version"
90
- ],
91
- "properties": {
92
- "name": {
93
- "type": "string"
94
- },
95
- "version": {
96
- "type": [
97
- "string",
98
- "null"
99
- ]
100
- }
101
- },
102
- "additionalProperties": false
103
- }
104
- },
105
- "ignores": {
106
- "type": "object",
107
- "required": [
108
- "rules",
109
- "count"
110
- ],
111
- "properties": {
112
- "count": {
113
- "type": "integer",
114
- "minimum": 0
115
- },
116
- "rules": {
117
- "type": "array",
118
- "items": {
119
- "type": "object",
120
- "properties": {
121
- "tool": {
122
- "type": "string"
123
- },
124
- "rule": {
125
- "type": "string"
126
- },
127
- "path": {
128
- "type": "string"
129
- },
130
- "reason": {
131
- "type": "string"
132
- }
133
- },
134
- "additionalProperties": false
135
- }
136
- }
137
- },
138
- "additionalProperties": false
139
- },
140
- "security": {
141
- "type": "object",
142
- "required": [
143
- "low",
144
- "medium",
145
- "high",
146
- "unknown"
147
- ],
148
- "properties": {
149
- "low": {
150
- "type": "integer",
151
- "minimum": 0
152
- },
153
- "medium": {
154
- "type": "integer",
155
- "minimum": 0
156
- },
157
- "high": {
158
- "type": "integer",
159
- "minimum": 0
160
- },
161
- "unknown": {
162
- "type": "integer",
163
- "minimum": 0
164
- }
165
- },
166
- "additionalProperties": false
167
- }
168
- },
169
- "additionalProperties": false
170
- }
171
- }
172
- }
@@ -1,50 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:repometry:schema:public-history:1",
4
- "type": "object",
5
- "required": ["schema", "reports"],
6
- "properties": {
7
- "schema": { "const": "urn:repometry:schema:public-history:1" },
8
- "reports": {
9
- "type": "array",
10
- "items": {
11
- "type": "object",
12
- "required": ["sha", "generatedAt", "status", "files", "parsed", "lines", "functions", "maxComplexity", "lineCoverage"],
13
- "properties": {
14
- "sha": { "type": "string", "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$" },
15
- "generatedAt": { "type": "string" },
16
- "committedAt": { "type": "string" },
17
- "subject": { "type": "string" },
18
- "author": {
19
- "type": "object",
20
- "required": ["name"],
21
- "additionalProperties": false,
22
- "properties": { "name": { "type": "string" }, "email": { "type": "string" } }
23
- },
24
- "tags": { "type": "array", "items": { "type": "string" } },
25
- "status": { "enum": ["complete", "partial", "not-applicable"] },
26
- "files": { "$ref": "#/$defs/count" },
27
- "parsed": { "$ref": "#/$defs/count" },
28
- "lines": { "$ref": "#/$defs/countOrMissing" },
29
- "functions": { "$ref": "#/$defs/countOrMissing" },
30
- "maxComplexity": { "$ref": "#/$defs/countOrMissing" },
31
- "lineCoverage": {
32
- "type": ["object", "null"],
33
- "required": ["covered", "total"],
34
- "properties": {
35
- "covered": { "$ref": "#/$defs/count" },
36
- "total": { "type": "integer", "minimum": 1 }
37
- },
38
- "additionalProperties": false
39
- }
40
- },
41
- "additionalProperties": false
42
- }
43
- }
44
- },
45
- "additionalProperties": false,
46
- "$defs": {
47
- "count": { "type": "integer", "minimum": 0 },
48
- "countOrMissing": { "type": ["integer", "null"], "minimum": 0 }
49
- }
50
- }
@@ -1,51 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:repometry:schema:quality-history:1",
4
- "type": "object",
5
- "required": ["schema", "reports"],
6
- "properties": {
7
- "schema": { "const": "urn:repometry:schema:quality-history:1" },
8
- "reports": {
9
- "type": "object",
10
- "patternProperties": { "^(?:[a-f0-9]{40}|[a-f0-9]{64})$": { "$ref": "#/$defs/quality" } },
11
- "additionalProperties": false
12
- }
13
- },
14
- "additionalProperties": false,
15
- "$defs": {
16
- "count": { "type": ["integer", "null"], "minimum": 0 },
17
- "ratio": { "type": ["number", "null"], "minimum": 0 },
18
- "quality": {
19
- "type": "object",
20
- "required": ["codeLines", "comments", "classes", "cognitiveComplexity", "duplication", "maintainability"],
21
- "properties": {
22
- "codeLines": { "$ref": "#/$defs/count" },
23
- "comments": { "$ref": "#/$defs/count" },
24
- "classes": { "$ref": "#/$defs/count" },
25
- "cognitiveComplexity": { "$ref": "#/$defs/count" },
26
- "duplication": {
27
- "type": ["object", "null"],
28
- "required": ["duplicatedLines", "codeLines", "ratio"],
29
- "properties": {
30
- "duplicatedLines": { "type": "integer", "minimum": 0 },
31
- "codeLines": { "type": "integer", "minimum": 0 },
32
- "ratio": { "type": ["number", "null"], "minimum": 0, "maximum": 1 }
33
- },
34
- "additionalProperties": false
35
- },
36
- "maintainability": {
37
- "type": ["object", "null"],
38
- "required": ["smells", "effortMinutes", "debtRatio", "grade"],
39
- "properties": {
40
- "smells": { "type": "integer", "minimum": 0 },
41
- "effortMinutes": { "type": "integer", "minimum": 0 },
42
- "debtRatio": { "$ref": "#/$defs/ratio" },
43
- "grade": { "enum": ["A", "B", "C", "D", "F", null] }
44
- },
45
- "additionalProperties": false
46
- }
47
- },
48
- "additionalProperties": false
49
- }
50
- }
51
- }
@@ -1,65 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:repometry:schema:report:1",
4
- "type": "object",
5
- "required": ["schema", "subject", "generatedAt", "appliedConfig", "definitions", "scope", "status", "measurements", "diagnostics"],
6
- "properties": {
7
- "schema": { "const": "urn:repometry:schema:report:1" },
8
- "subject": { "$ref": "#/$defs/subject" },
9
- "generatedAt": { "type": "string" },
10
- "appliedConfig": { "type": "object", "minProperties": 1 },
11
- "definitions": { "type": "object", "additionalProperties": { "type": "string" } },
12
- "scope": {
13
- "type": "object",
14
- "required": ["files", "parsed"],
15
- "properties": { "files": { "$ref": "#/$defs/count" }, "parsed": { "$ref": "#/$defs/count" } },
16
- "additionalProperties": false
17
- },
18
- "status": { "enum": ["complete", "partial", "not-applicable"] },
19
- "measurements": { "type": "array", "items": { "$ref": "#/$defs/measurement" } },
20
- "diagnostics": { "type": "array", "items": { "$ref": "#/$defs/diagnostic" } }
21
- },
22
- "additionalProperties": false,
23
- "$defs": {
24
- "count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
25
- "subject": {
26
- "type": "object",
27
- "required": ["kind", "id"],
28
- "properties": { "kind": { "enum": ["commit", "working-tree"] }, "id": { "type": "string" } },
29
- "additionalProperties": false,
30
- "if": { "properties": { "kind": { "const": "commit" } } },
31
- "then": { "properties": { "id": { "type": "string", "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$" } } },
32
- "else": { "properties": { "id": { "type": "string", "pattern": "^[a-f0-9]{64}$" } } }
33
- },
34
- "measurement": {
35
- "type": "object",
36
- "required": ["definition", "target", "value"],
37
- "properties": {
38
- "definition": { "type": "string", "minLength": 1 },
39
- "target": { "enum": ["repository", "file", "function"] },
40
- "value": { "type": ["number", "null"] },
41
- "path": { "type": "string", "minLength": 1 },
42
- "line": { "type": "integer", "minimum": 1 },
43
- "column": { "type": "integer", "minimum": 1 },
44
- "name": { "type": "string" },
45
- "covered": { "$ref": "#/$defs/count" },
46
- "total": { "$ref": "#/$defs/count" }
47
- },
48
- "dependentRequired": { "covered": ["total"], "total": ["covered"], "line": ["path"], "column": ["line"] },
49
- "if": { "properties": { "target": { "enum": ["file", "function"] } } },
50
- "then": { "required": ["path"] },
51
- "additionalProperties": false
52
- },
53
- "diagnostic": {
54
- "type": "object",
55
- "required": ["operation", "state", "message"],
56
- "properties": {
57
- "operation": { "type": "string" },
58
- "state": { "enum": ["failed", "blocked", "partial"] },
59
- "path": { "type": "string" },
60
- "message": { "type": "string" }
61
- },
62
- "additionalProperties": false
63
- }
64
- }
65
- }
@@ -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;