@repometry/core 0.0.0-dev.0 → 0.0.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/LICENSE +21 -0
- package/package.json +37 -2
- package/target/main/ts/engine/execute.d.ts +15 -0
- package/target/main/ts/engine/execute.js +63 -0
- package/target/main/ts/engine/manifest.d.ts +3 -0
- package/target/main/ts/engine/manifest.js +129 -0
- package/target/main/ts/engine/operation-cache.d.ts +14 -0
- package/target/main/ts/engine/operation-cache.js +66 -0
- package/target/main/ts/engine/plan.d.ts +21 -0
- package/target/main/ts/engine/plan.js +123 -0
- package/target/main/ts/engine/plugin.d.ts +71 -0
- package/target/main/ts/engine/plugin.js +3 -0
- package/target/main/ts/engine/report-products.d.ts +16 -0
- package/target/main/ts/engine/report-products.js +76 -0
- package/target/main/ts/index.d.ts +20 -0
- package/target/main/ts/index.js +8 -0
- package/target/main/ts/model/changes.d.ts +39 -0
- package/target/main/ts/model/changes.js +6 -0
- package/target/main/ts/model/churn.d.ts +11 -0
- package/target/main/ts/model/churn.js +6 -0
- package/target/main/ts/model/clone-source.d.ts +19 -0
- package/target/main/ts/model/clone-source.js +20 -0
- package/target/main/ts/model/code-structure.d.ts +45 -0
- package/target/main/ts/model/code-structure.js +63 -0
- package/target/main/ts/model/comparison.d.ts +24 -0
- package/target/main/ts/model/comparison.js +2 -0
- package/target/main/ts/model/coverage-input.d.ts +12 -0
- package/target/main/ts/model/coverage-input.js +11 -0
- package/target/main/ts/model/diff-coverage.d.ts +25 -0
- package/target/main/ts/model/diff-coverage.js +10 -0
- package/target/main/ts/model/file-types.d.ts +20 -0
- package/target/main/ts/model/file-types.js +50 -0
- package/target/main/ts/model/finding-ignore.d.ts +8 -0
- package/target/main/ts/model/finding-ignore.js +36 -0
- package/target/main/ts/model/finding.d.ts +34 -0
- package/target/main/ts/model/finding.js +45 -0
- package/target/main/ts/model/ignore-rule.d.ts +11 -0
- package/target/main/ts/model/ignore-rule.js +2 -0
- package/target/main/ts/model/language.d.ts +44 -0
- package/target/main/ts/model/language.js +31 -0
- package/target/main/ts/model/line-coverage.d.ts +15 -0
- package/target/main/ts/model/line-coverage.js +43 -0
- package/target/main/ts/model/measurement.d.ts +34 -0
- package/target/main/ts/model/measurement.js +42 -0
- package/target/main/ts/model/metric-descriptor.d.ts +17 -0
- package/target/main/ts/model/metric-descriptor.js +2 -0
- package/target/main/ts/model/plugin-data.d.ts +32 -0
- package/target/main/ts/model/plugin-data.js +16 -0
- package/target/main/ts/model/pull-review.d.ts +70 -0
- package/target/main/ts/model/pull-review.js +4 -0
- package/target/main/ts/model/quality-summary.d.ts +46 -0
- package/target/main/ts/model/quality-summary.js +92 -0
- package/target/main/ts/model/report.d.ts +45 -0
- package/target/main/ts/model/report.js +5 -0
- package/target/main/ts/model/scanner-import.d.ts +39 -0
- package/target/main/ts/model/scanner-import.js +29 -0
- package/target/main/ts/model/snapshot.d.ts +14 -0
- package/target/main/ts/model/snapshot.js +49 -0
- package/target/main/ts/model/source-locator.d.ts +7 -0
- package/target/main/ts/model/source-locator.js +2 -0
- package/target/main/ts/model/source.d.ts +31 -0
- package/target/main/ts/model/source.js +20 -0
- package/target/main/ts/ports/report.d.ts +9 -0
- package/target/main/ts/ports/report.js +2 -0
- package/target/main/ts/ports/source-provider.d.ts +14 -0
- package/target/main/ts/ports/source-provider.js +5 -0
- package/target/main/ts/ports/tool-runner.d.ts +18 -0
- package/target/main/ts/ports/tool-runner.js +2 -0
- package/target/main/ts/profile/exclusions.d.ts +11 -0
- package/target/main/ts/profile/exclusions.js +58 -0
- package/target/main/ts/profile/maintainability.d.ts +31 -0
- package/target/main/ts/profile/maintainability.js +10 -0
- package/target/main/ts/profile/profile.d.ts +4 -0
- package/target/main/ts/profile/profile.js +11 -0
- package/target/main/ts/usecases/diff-coverage-policy.d.ts +6 -0
- package/target/main/ts/usecases/diff-coverage-policy.js +11 -0
- package/target/main/ts/usecases/diff-coverage.d.ts +40 -0
- package/target/main/ts/usecases/diff-coverage.js +16 -0
- package/target/main/ts/usecases/inspect.d.ts +37 -0
- package/target/main/ts/usecases/inspect.js +42 -0
- package/target/main/ts/usecases/review-effect.d.ts +18 -0
- package/target/main/ts/usecases/review-effect.js +37 -0
- package/target/main/ts/usecases/review-match.d.ts +14 -0
- package/target/main/ts/usecases/review-match.js +72 -0
- package/target/main/ts/usecases/review-position.d.ts +14 -0
- package/target/main/ts/usecases/review-position.js +53 -0
- package/target/main/ts/usecases/review-scope.d.ts +21 -0
- package/target/main/ts/usecases/review-scope.js +41 -0
- package/target/main/ts/usecases/review.d.ts +42 -0
- package/target/main/ts/usecases/review.js +112 -0
- package/README.md +0 -4
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pairs by position, best first: most of a base finding's lines, carried through the diff, land inside a head finding of
|
|
3
|
+
* the same rule. More carried lines win, then the same anchor, then the closer size.
|
|
4
|
+
*/
|
|
5
|
+
export function positionMatches(base, head, byBase, headPath) {
|
|
6
|
+
const found = [];
|
|
7
|
+
for (const from of base.filter(located)) {
|
|
8
|
+
const carried = carriedLines(from, byBase.get(from.path));
|
|
9
|
+
const target = headPath(from.path);
|
|
10
|
+
for (const to of head.filter(item => located(item) && item.rule === from.rule && item.path === target)) {
|
|
11
|
+
const overlap = carried.filter(line => line >= to.line && line <= end(to)).length;
|
|
12
|
+
if (overlap * 2 > size(from)) {
|
|
13
|
+
found.push({ base: from, head: to, score: [overlap, Number(from.anchor === to.anchor), -Math.abs(size(from) - size(to))] });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return found.sort((left, right) => right.score[0] - left.score[0] || right.score[1] - left.score[1] || right.score[2] - left.score[2]);
|
|
18
|
+
}
|
|
19
|
+
/** Where an unchanged base line sits on the head side; undefined for a changed line or a file without a counterpart. */
|
|
20
|
+
export function headLine(file, line) {
|
|
21
|
+
if (file === undefined)
|
|
22
|
+
return line;
|
|
23
|
+
if (file.whole || file.path === null)
|
|
24
|
+
return undefined;
|
|
25
|
+
let offset = 0;
|
|
26
|
+
for (const { base, head } of file.hunks) {
|
|
27
|
+
const last = base.first + base.count - 1;
|
|
28
|
+
if (base.count > 0 && line >= base.first && line <= last)
|
|
29
|
+
return undefined;
|
|
30
|
+
if (base.count > 0 ? last < line : base.first < line)
|
|
31
|
+
offset += head.count - base.count;
|
|
32
|
+
}
|
|
33
|
+
return line + offset;
|
|
34
|
+
}
|
|
35
|
+
function carriedLines(finding, file) {
|
|
36
|
+
const lines = [];
|
|
37
|
+
for (let line = finding.line; line <= end(finding); line++) {
|
|
38
|
+
const moved = headLine(file, line);
|
|
39
|
+
if (moved !== undefined)
|
|
40
|
+
lines.push(moved);
|
|
41
|
+
}
|
|
42
|
+
return lines;
|
|
43
|
+
}
|
|
44
|
+
function located(finding) {
|
|
45
|
+
return finding.path !== undefined && finding.line !== undefined && finding.category !== 'duplication';
|
|
46
|
+
}
|
|
47
|
+
function end(finding) {
|
|
48
|
+
return finding.endLine ?? finding.line;
|
|
49
|
+
}
|
|
50
|
+
function size(finding) {
|
|
51
|
+
return end(finding) - finding.line + 1;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=review-position.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { LineChanges, LineRange } from '../model/changes.js';
|
|
2
|
+
import type { Finding, FindingLocation } from '../model/finding.js';
|
|
3
|
+
/** A side's source text, line by line; undefined past the end of a file or for unreadable content. */
|
|
4
|
+
export interface SourceLines {
|
|
5
|
+
line(path: string, line: number): string | undefined;
|
|
6
|
+
}
|
|
7
|
+
/** One side of a change: its changed lines by path, and its source text. */
|
|
8
|
+
export interface ReviewSide {
|
|
9
|
+
readonly ranges: ReadonlyMap<string, readonly LineRange[] | 'whole'>;
|
|
10
|
+
readonly lines: SourceLines;
|
|
11
|
+
}
|
|
12
|
+
/** The base side's modified and removed lines, or the head side's added and modified ones. */
|
|
13
|
+
export declare function reviewSide(changes: LineChanges, side: 'base' | 'head', lines: SourceLines): ReviewSide;
|
|
14
|
+
/** A finding is in scope when it sits on changed lines; one without a line, or past its file's end, when its file changed. */
|
|
15
|
+
export declare function inScope(finding: Finding, side: ReviewSide): boolean;
|
|
16
|
+
/** A duplicate shows on its first changed copy, with the others as context. Other findings stay where they are. */
|
|
17
|
+
export declare function placed(finding: Finding, side: ReviewSide): {
|
|
18
|
+
finding: Finding;
|
|
19
|
+
context: readonly FindingLocation[];
|
|
20
|
+
};
|
|
21
|
+
export declare function compare(left: string, right: string): number;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** The base side's modified and removed lines, or the head side's added and modified ones. */
|
|
2
|
+
export function reviewSide(changes, side, lines) {
|
|
3
|
+
const ranges = new Map();
|
|
4
|
+
for (const file of changes.files) {
|
|
5
|
+
const path = side === 'head' ? file.path : file.previous;
|
|
6
|
+
if (path !== null)
|
|
7
|
+
ranges.set(path, file.whole ? 'whole' : side === 'head' ? file.added : file.removed);
|
|
8
|
+
}
|
|
9
|
+
return { ranges, lines };
|
|
10
|
+
}
|
|
11
|
+
/** A finding is in scope when it sits on changed lines; one without a line, or past its file's end, when its file changed. */
|
|
12
|
+
export function inScope(finding, side) {
|
|
13
|
+
if (finding.path === undefined)
|
|
14
|
+
return false;
|
|
15
|
+
if (finding.category === 'duplication')
|
|
16
|
+
return locations(finding).some(copy => locationInScope(copy.path, copy.line, copy.endLine, side));
|
|
17
|
+
const fileLevel = finding.line === undefined || side.lines.line(finding.path, finding.line) === undefined;
|
|
18
|
+
return fileLevel ? side.ranges.has(finding.path) : locationInScope(finding.path, finding.line, finding.endLine ?? finding.line, side);
|
|
19
|
+
}
|
|
20
|
+
function locationInScope(path, line, endLine, side) {
|
|
21
|
+
const ranges = side.ranges.get(path);
|
|
22
|
+
return ranges === 'whole' || (ranges?.some(range => range.first <= endLine && range.last >= line) ?? false);
|
|
23
|
+
}
|
|
24
|
+
function locations(finding) {
|
|
25
|
+
const primary = { path: finding.path, line: finding.line, endLine: finding.endLine ?? finding.line };
|
|
26
|
+
return [primary, ...finding.related ?? []];
|
|
27
|
+
}
|
|
28
|
+
/** A duplicate shows on its first changed copy, with the others as context. Other findings stay where they are. */
|
|
29
|
+
export function placed(finding, side) {
|
|
30
|
+
if (finding.category !== 'duplication' || finding.path === undefined || finding.line === undefined)
|
|
31
|
+
return { finding, context: [] };
|
|
32
|
+
const copies = locations(finding).sort((left, right) => compare(left.path, right.path) || left.line - right.line);
|
|
33
|
+
const shown = copies.find(copy => locationInScope(copy.path, copy.line, copy.endLine, side)) ?? copies[0];
|
|
34
|
+
const { related: _related, ...rest } = finding;
|
|
35
|
+
return { finding: { ...rest, path: shown.path, line: shown.line, endLine: shown.endLine },
|
|
36
|
+
context: copies.filter(copy => copy !== shown) };
|
|
37
|
+
}
|
|
38
|
+
export function compare(left, right) {
|
|
39
|
+
return left < right ? -1 : left > right ? 1 : 0;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=review-scope.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { LineChanges } from '../model/changes.js';
|
|
2
|
+
import type { PullReview } from '../model/pull-review.js';
|
|
3
|
+
import type { Report } from '../model/report.js';
|
|
4
|
+
import type { SourceLines } from './review-effect.js';
|
|
5
|
+
import type { DiffCoverageReport } from './diff-coverage.js';
|
|
6
|
+
export interface ReviewOptions {
|
|
7
|
+
readonly number?: number;
|
|
8
|
+
readonly minimumPercent?: number;
|
|
9
|
+
readonly minimumLines?: number;
|
|
10
|
+
readonly maxNewIssues?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ReviewInputs {
|
|
13
|
+
/** The base as requested, such as `origin/main`. */
|
|
14
|
+
readonly requestedBase: string;
|
|
15
|
+
/** The inspection of the merge base. */
|
|
16
|
+
readonly base: Report;
|
|
17
|
+
readonly head: Report;
|
|
18
|
+
readonly changes: LineChanges;
|
|
19
|
+
readonly sources: {
|
|
20
|
+
readonly base: SourceLines;
|
|
21
|
+
readonly head: SourceLines;
|
|
22
|
+
};
|
|
23
|
+
readonly coverage: {
|
|
24
|
+
readonly report: DiffCoverageReport;
|
|
25
|
+
readonly uncovered: readonly {
|
|
26
|
+
readonly path: string;
|
|
27
|
+
readonly lines: readonly number[];
|
|
28
|
+
}[];
|
|
29
|
+
} | null;
|
|
30
|
+
/** The change edits Repometry's settings. */
|
|
31
|
+
readonly settingsChanged: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare const coverageDefaults: {
|
|
34
|
+
readonly minimumPercent: 80;
|
|
35
|
+
readonly minimumLines: 20;
|
|
36
|
+
};
|
|
37
|
+
export declare function projectReview(options: ReviewOptions, inputs: ReviewInputs): PullReview;
|
|
38
|
+
/** Throws for options the review can't apply. */
|
|
39
|
+
export declare function checkOptions({ number, maxNewIssues, minimumPercent }: ReviewOptions, coverage: boolean): void;
|
|
40
|
+
/** The verdict and its reason, in one line. */
|
|
41
|
+
export declare function reviewReason({ verdict, unmeasured, issueGate, coverage }: PullReview): string;
|
|
42
|
+
export declare function reviewExitCode(review: PullReview): 0 | 2 | 3;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { pullReviewSchema } from '../model/pull-review.js';
|
|
2
|
+
import { isRecord } from '../model/plugin-data.js';
|
|
3
|
+
import { classifyIssues, debtEffect } from './review-effect.js';
|
|
4
|
+
export const coverageDefaults = { minimumPercent: 80, minimumLines: 20 };
|
|
5
|
+
const hostOperations = new Set(['git/churn', 'source/claims']);
|
|
6
|
+
const settingsNote = 'This change edits Repometry settings, which can hide issues from this check.';
|
|
7
|
+
export function projectReview(options, inputs) {
|
|
8
|
+
checkOptions(options, inputs.coverage !== null);
|
|
9
|
+
const { number, maxNewIssues = 0 } = options;
|
|
10
|
+
const issues = classifyIssues(inputs.base.findings ?? [], inputs.head.findings ?? [], inputs.changes, inputs.sources);
|
|
11
|
+
const count = issues.filter(issue => issue.effect === 'new' || issue.effect === 'worsened').length;
|
|
12
|
+
const issueGate = { maximum: maxNewIssues, count, status: count > maxNewIssues ? 'failed' : 'passed' };
|
|
13
|
+
const coverage = changedCoverage(options, inputs.coverage);
|
|
14
|
+
const { unmeasured, notes } = diagnose(inputs);
|
|
15
|
+
const failed = issueGate.status === 'failed' || coverage.gate?.status === 'failed';
|
|
16
|
+
return { schema: pullReviewSchema, number: number ?? null, generatedAt: new Date().toISOString(),
|
|
17
|
+
base: inputs.requestedBase, mergeBase: inputs.base.subject.id, head: inputs.head.subject.id, changedFiles: inputs.changes.files.length,
|
|
18
|
+
verdict: unmeasured.length ? 'unmeasured' : failed ? 'failed' : 'passed',
|
|
19
|
+
issues, debt: debtEffect(issues), coverage, issueGate, unmeasured,
|
|
20
|
+
notes: inputs.settingsChanged ? [...notes, { message: settingsNote }] : notes };
|
|
21
|
+
}
|
|
22
|
+
/** Throws for options the review can't apply. */
|
|
23
|
+
export function checkOptions({ number, maxNewIssues = 0, minimumPercent }, coverage) {
|
|
24
|
+
if (number !== undefined && (!Number.isSafeInteger(number) || number < 1))
|
|
25
|
+
throw new Error('Pull request number must be a positive integer');
|
|
26
|
+
if (!Number.isSafeInteger(maxNewIssues) || maxNewIssues < 0)
|
|
27
|
+
throw new Error('Maximum new issues must be a non-negative integer');
|
|
28
|
+
if (minimumPercent !== undefined && !coverage)
|
|
29
|
+
throw new Error('Minimum changed-line coverage requires --import lcov=PATH, go-cover=PATH or cobertura=PATH');
|
|
30
|
+
}
|
|
31
|
+
/** The verdict and its reason, in one line. */
|
|
32
|
+
export function reviewReason({ verdict, unmeasured, issueGate, coverage }) {
|
|
33
|
+
if (verdict === 'unmeasured') {
|
|
34
|
+
const [first] = unmeasured;
|
|
35
|
+
const more = unmeasured.length > 1 ? `, and ${unmeasured.length - 1} more` : '';
|
|
36
|
+
return `Review not measured: ${first.operation}${first.path === undefined ? '' : ` on ${first.path}`}: ${first.message}${more}.`;
|
|
37
|
+
}
|
|
38
|
+
const reasons = [];
|
|
39
|
+
if (issueGate.status === 'failed') {
|
|
40
|
+
reasons.push(`${issueGate.count} new or worsened ${issueGate.count === 1 ? 'issue' : 'issues'} on the changed lines, ${issueGate.maximum} allowed`);
|
|
41
|
+
}
|
|
42
|
+
if (coverage.gate?.status === 'failed') {
|
|
43
|
+
reasons.push(`changed-line coverage ${coverage.percent.toFixed(2)}% is under the ${coverage.gate.minimumPercent}% minimum`);
|
|
44
|
+
}
|
|
45
|
+
return reasons.length ? `Review failed: ${reasons.join('; ')}.` : 'Review passed.';
|
|
46
|
+
}
|
|
47
|
+
export function reviewExitCode(review) {
|
|
48
|
+
return review.verdict === 'unmeasured' ? 2 : review.verdict === 'failed' ? 3 : 0;
|
|
49
|
+
}
|
|
50
|
+
function changedCoverage(options, input) {
|
|
51
|
+
if (input === null)
|
|
52
|
+
return { imported: false, covered: 0, total: 0, percent: null, uncovered: [], unmapped: [], gate: null };
|
|
53
|
+
const { minimumPercent = coverageDefaults.minimumPercent, minimumLines = coverageDefaults.minimumLines } = options;
|
|
54
|
+
if (!Number.isFinite(minimumPercent) || minimumPercent < 0 || minimumPercent > 100) {
|
|
55
|
+
throw new Error('Minimum changed-line coverage must be a percentage from 0 to 100');
|
|
56
|
+
}
|
|
57
|
+
if (!Number.isSafeInteger(minimumLines) || minimumLines < 0)
|
|
58
|
+
throw new Error('Minimum changed lines must be a non-negative integer');
|
|
59
|
+
const { covered, total, percent, gaps } = input.report;
|
|
60
|
+
const status = total < minimumLines || percent === null ? 'not-applicable'
|
|
61
|
+
: percent + Number.EPSILON * 100 >= minimumPercent ? 'passed' : 'failed';
|
|
62
|
+
return { imported: true, covered, total, percent, uncovered: input.uncovered.flatMap(({ path, lines }) => ranges(path, lines)),
|
|
63
|
+
unmapped: gaps, gate: { minimumPercent, minimumLines, status } };
|
|
64
|
+
}
|
|
65
|
+
function ranges(path, lines) {
|
|
66
|
+
const merged = [];
|
|
67
|
+
for (const line of [...lines].sort((left, right) => left - right)) {
|
|
68
|
+
const last = merged.at(-1);
|
|
69
|
+
if (last && line <= last.last + 1)
|
|
70
|
+
last.last = Math.max(last.last, line);
|
|
71
|
+
else
|
|
72
|
+
merged.push({ path, first: line, last: line });
|
|
73
|
+
}
|
|
74
|
+
return merged;
|
|
75
|
+
}
|
|
76
|
+
/** The operations that read the host's coverage input, which their stored records name as the external port `lcov`. */
|
|
77
|
+
function coverageImporters({ appliedConfig }) {
|
|
78
|
+
const records = Array.isArray(appliedConfig.operations) ? appliedConfig.operations : [];
|
|
79
|
+
return new Set(records.flatMap(record => isRecord(record) && isRecord(record.inputs)
|
|
80
|
+
&& Object.values(record.inputs).some(input => isRecord(input) && input.external === 'lcov') ? [record.key] : []));
|
|
81
|
+
}
|
|
82
|
+
/** Failures on the head only leave the check unmeasured. Failures on both sides, and skipped large files, are notes. */
|
|
83
|
+
function diagnose({ base, head, changes }) {
|
|
84
|
+
const changed = new Set(changes.files.flatMap(file => file.path === null ? [] : [file.path]));
|
|
85
|
+
const failing = (diagnostic) => diagnostic.state === 'failed' || diagnostic.state === 'blocked';
|
|
86
|
+
const failedOnBase = new Set(base.diagnostics.filter(failing).map(({ operation }) => operation));
|
|
87
|
+
const coverageImports = coverageImporters(head);
|
|
88
|
+
const unmeasured = [];
|
|
89
|
+
const notes = [];
|
|
90
|
+
const brokenPaths = new Set(head.diagnostics.filter(item => item.state === 'failed' && item.path !== undefined).map(item => item.path));
|
|
91
|
+
// An operation blocked by a failure on the same file adds nothing to that failure.
|
|
92
|
+
const reported = head.diagnostics.filter(item => item.state !== 'blocked' || item.path === undefined || !brokenPaths.has(item.path));
|
|
93
|
+
for (const diagnostic of reported) {
|
|
94
|
+
const reason = { operation: diagnostic.operation, ...diagnostic.path === undefined ? {} : { path: diagnostic.path },
|
|
95
|
+
message: diagnostic.message };
|
|
96
|
+
if (diagnostic.operation === 'source/claims') {
|
|
97
|
+
if (diagnostic.path !== undefined && changed.has(diagnostic.path))
|
|
98
|
+
notes.push(reason);
|
|
99
|
+
}
|
|
100
|
+
else if (hostOperations.has(diagnostic.operation) || coverageImports.has(diagnostic.operation) || !failing(diagnostic)) {
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
else if (failedOnBase.has(diagnostic.operation) && (diagnostic.path === undefined || !changed.has(diagnostic.path))) {
|
|
104
|
+
notes.push(reason);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
unmeasured.push(reason);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return { unmeasured, notes };
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=review.js.map
|
package/README.md
DELETED