We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 22df177 + d95b204 commit 380d473Copy full SHA for 380d473
src/feature/metric/calculateCodeMetrics.ts
@@ -1,5 +1,6 @@
1
import type { OptionValues } from '../../setting/model';
2
import type ProjectTraverser from '../util/ProjectTraverser';
3
+import type { Tree } from '../../utils/Tree';
4
import type { RawMetrics } from './functions/convertRawToCodeMetrics';
5
import { convertRawToCodeMetrics } from './functions/convertRawToCodeMetrics';
6
import type { CodeMetrics } from './metricsModels';
@@ -11,7 +12,7 @@ export function calculateCodeMetrics(
11
12
commandOptions: Pick<OptionValues, 'metrics'>,
13
traverser: ProjectTraverser,
14
filter: (source: string) => boolean,
-): CodeMetrics[] {
15
+): Tree<CodeMetrics>[] {
16
if (!commandOptions.metrics) return [];
17
return traverser
18
.traverse(
0 commit comments