Skip to content

Commit 60cdcea

Browse files
author
Simon Renoult
committed
refactor: groups churn/complexity files together
1 parent 94ab221 commit 60cdcea

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/lib/churn.ts renamed to src/lib/churn/churn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { existsSync } from "fs";
33
import * as micromatch from "micromatch";
44
import { resolve } from "path";
55

6-
import { Options, Path } from "./types";
7-
import { buildDebugger, withDuration } from "../utils";
6+
import { Options, Path } from "../types";
7+
import { buildDebugger, withDuration } from "../../utils";
88

99
type ParsedLine = { relativePath: string; commitCount: string };
1010
const internal = { debug: buildDebugger("churn") };

src/lib/complexity.ts renamed to src/lib/complexity/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { resolve } from "path";
22

3-
import { Options, Path } from "./types";
4-
import { buildDebugger, UnsupportedExtension, withDuration } from "../utils";
5-
import computeSloc from "./complexity/sloc";
6-
import { calculate as calculateCyclomatic } from "./complexity/cyclomatic";
7-
import { calculate as calculateHalstead } from "./complexity/halstead";
3+
import { Options, Path } from "../types";
4+
import { buildDebugger, UnsupportedExtension, withDuration } from "../../utils";
5+
import computeSloc from "./sloc";
6+
import { calculate as calculateCyclomatic } from "./cyclomatic";
7+
import { calculate as calculateHalstead } from "./halstead";
88

99
type ComplexityEntry = { path: Path; complexity: number };
1010
const internal = { debug: buildDebugger("complexity") };

src/lib/statistics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Churn from "./churn";
1+
import Churn from "./churn/churn";
22
import Complexity from "./complexity";
33
import { Options, Path, Sort } from "./types";
44
import { buildDebugger } from "../utils";

0 commit comments

Comments
 (0)