Skip to content

Commit d95b204

Browse files
committed
refactor: calculateCodeMetrics の返却値型に Tree を付与
1 parent 22df177 commit d95b204

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/feature/metric/calculateCodeMetrics.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { OptionValues } from '../../setting/model';
22
import type ProjectTraverser from '../util/ProjectTraverser';
3+
import type { Tree } from '../../utils/Tree';
34
import type { RawMetrics } from './functions/convertRawToCodeMetrics';
45
import { convertRawToCodeMetrics } from './functions/convertRawToCodeMetrics';
56
import type { CodeMetrics } from './metricsModels';
@@ -11,7 +12,7 @@ export function calculateCodeMetrics(
1112
commandOptions: Pick<OptionValues, 'metrics'>,
1213
traverser: ProjectTraverser,
1314
filter: (source: string) => boolean,
14-
): CodeMetrics[] {
15+
): Tree<CodeMetrics>[] {
1516
if (!commandOptions.metrics) return [];
1617
return traverser
1718
.traverse(

0 commit comments

Comments
 (0)