Skip to content

Cleanup: 18 unused destructured variables in CodebaseAnalytics.vue #2405

@mrveiss

Description

@mrveiss

Problem

CodebaseAnalytics.vue destructures 18 variables from composables that are never used in the template or script. ESLint reports these as @typescript-eslint/no-unused-vars errors.

Affected Variables

From useSourceRegistry: sources, handleClearSource
From useAnalyticsDataFetchers: unifiedReport, loadDuplicates, loadHardcodes, loadCachedDuplicates, loadCachedDependencies, loadCachedImportTree
From useCodeIntelAnalysis: clearCacheImpl (aliased from clearCache)
From useAnalyticsDebug: getSeverityClass, truncateValue, getRiskClass, formatFactorName, getGradeClass, formatTimestamp, getScoreClass, getPriorityClass
From imports: SectionType

Discovered During

Working on #2390 — ESLint check revealed pre-existing warnings.

Suggested Fix

Remove unused destructured bindings. Some may have been needed by child components that were refactored into panels (#1469, #2228, #2230) and the bindings were left behind.

Impact

Low — lint noise, minor dead code.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions