Skip to content

Commit 20070ba

Browse files
committed
Consistent naming
1 parent 5bb56e7 commit 20070ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎packages/knip/src/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { debugLog, debugLogArray, debugLogObject } from './util/debug.js';
1515
import { getOrCreateFileNode, updateImportMap } from './util/dependency-graph.js';
1616
import { getGitIgnoredHandler } from './util/glob-core.js';
1717
import { _glob, negate } from './util/glob.js';
18-
import { getReferencedDependencyHandler } from './util/handle-referenced-dependency.js';
18+
import { getReferencedInputsHandler } from './util/handle-referenced-inputs.js';
1919
import { getHasStrictlyNsReferences, getType } from './util/has-strictly-ns-references.js';
2020
import { type Input, isConfigPattern, isEntry, isProductionEntry, toProductionEntry } from './util/input.js';
2121
import { getIsIdentifierReferencedHandler } from './util/is-identifier-referenced.js';
@@ -104,7 +104,7 @@ export const main = async (unresolvedConfiguration: CommandLineOptions) => {
104104

105105
const isGitIgnored = await getGitIgnoredHandler({ cwd, gitignore });
106106
const toSourceFilePath = getToSourcePathHandler(chief);
107-
const getReferencedInternalFilePath = getReferencedDependencyHandler(collector, deputy, chief, isGitIgnored);
107+
const getReferencedInternalFilePath = getReferencedInputsHandler(collector, deputy, chief, isGitIgnored);
108108
const shouldIgnore = getShouldIgnoreHandler(isProduction);
109109
const shouldIgnoreTags = getShouldIgnoreTagHandler(tags);
110110

packages/knip/src/util/handle-referenced-dependency.ts renamed to packages/knip/src/util/handle-referenced-inputs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { _resolveSync } from './resolve.js';
1515
* Try not to use module resolver. This is slow. Use known workspaces and dependencies.
1616
* Eventually we might be able to work mostly from lockfile alone.
1717
*/
18-
export const getReferencedDependencyHandler =
18+
export const getReferencedInputsHandler =
1919
(
2020
collector: IssueCollector,
2121
deputy: DependencyDeputy,

0 commit comments

Comments
 (0)