Repository Analysis

vitejs/vite

Next generation frontend tooling. It's fast!

1.2 Likely human-written View on GitHub
1.2
Adjusted Score
1.2
Raw Score
100%
Time Factor
2026-05-30
Last Push
80,878
Stars
TypeScript
Language
148,880
Lines of Code
2111
Files
161
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 2HIGH 0MEDIUM 1LOW 158

Pattern Findings

161 matches across 5 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers145 hits · 145 pts
SeverityFileLineSnippet
LOWplayground/vitestSetup.ts388function setupConsoleWarnCollector(logs: string[]) {
LOWplayground/vitestSetup.ts400function stripTrailingSlashIfNeeded(url: string, base: string): string {
LOWplayground/test-utils.ts254export function readDepOptimizationMetadata(
LOWplayground/backend-integration/vite.config.js9function BackendIntegrationExample() {
LOWplayground/ssr/src/app.js51async function renderForkedDeadlockStaticImports(rootDir) {
LOWplayground/ssr/src/app.js57async function renderForkedDeadlockDynamicImports(rootDir) {
LOW…nd/ssr/src/forked-deadlock/fuse-stuck-bridge-module.js6export function fuseStuckBridgeModuleExport() {
LOW…d-deadlock/dynamic-imports/fuse-stuck-bridge-module.js6export function fuseStuckBridgeModuleExport() {
LOWplayground/hmr-full-bundle-mode/vite.config.ts10function waitBundleCompleteUntilAccess(): Plugin {
LOWplayground/lib/__tests__/serve.ts147function setupConsoleWarnCollector() {
LOWplayground/assets/index.html674 function testDynamicImportMetaUrlWithComma(name, i) {
LOWplayground/assets/index.html685 function testDynamicImportMetaUrlWithQuery(name, i) {
LOWplayground/assets/index.html696 function testDynamicImportMetaUrlWithTernaryOperator(name, i) {
LOWplayground/js-sourcemap/foo-with-sourcemap-plugin.ts8export default function transformFooWithInlineSourceMap(): Plugin {
LOWdocs/guide/api-environment-runtimes.md136function createWorkerdDevEnvironment(
LOWdocs/guide/api-environment-frameworks.md213function vitePluginVirtualIndexHtml(): Plugin {
LOWdocs/guide/api-environment-plugins.md152function PerEnvironmentCountTransformedModulesPlugin() {
LOWdocs/changes/shared-plugins-during-build.md24function CountTransformedModulesPlugin() {
LOWdocs/changes/shared-plugins-during-build.md44function PerEnvironmentCountTransformedModulesPlugin() {
LOWdocs/changes/shared-plugins-during-build.md65function PerEnvironmentCountTransformedModulesPlugin() {
LOWdocs/_data/acknowledgements.data.ts113function parseBundledDependenciesFromLicense(licensePath: string): string[] {
LOWscripts/mergeChangelog.ts97function findPreviousStableVersion(lines: string[], startIdx: number): string {
LOWpackages/plugin-legacy/src/index.ts962function prependModenChunkLegacyGuardPlugin(): Plugin {
LOWpackages/plugin-legacy/src/index.ts999function recordAndRemovePolyfillBabelPlugin(
LOWpackages/plugin-legacy/src/index.ts1015function replaceLegacyEnvBabelPlugin(): BabelPlugin {
LOWpackages/plugin-legacy/src/index.ts1028function replaceModernEnvBabelPlugin(): BabelPlugin {
LOWpackages/create-vite/src/index.ts824function updateReactCompilerReadme(root: string, newBody: string) {
LOWpackages/vite/rolldown.config.ts170function enableSourceMapsInWatchModePlugin(): Plugin {
LOWpackages/vite/rolldown.config.ts199function externalizeDepsInWatchPlugin(): Plugin {
LOWpackages/vite/rolldown.config.ts293function buildTimeImportMetaUrlPlugin(): Plugin {
LOWpackages/vite/rolldown.dts.config.ts163function stringifyModuleExportName(node: ModuleExportName): string {
LOWpackages/vite/rolldown.dts.config.ts267function replaceConfusingTypeNames(
LOWpackages/vite/src/shared/forwardConsole.ts26export function setupForwardConsoleHandler(
LOWpackages/vite/src/shared/utils.ts61export function getAsyncFunctionDeclarationPaddingLineCount(): number {
LOWpackages/vite/src/shared/ssrTransform.ts23export function analyzeImportedModDifference(
LOWpackages/vite/src/node/external.ts35export function createIsConfiguredAsExternal(
LOWpackages/vite/src/node/plugin.ts390export async function resolveEnvironmentPlugins(
LOWpackages/vite/src/node/utils.ts692function windowsMappedRealpathSync(path: string) {
LOWpackages/vite/src/node/utils.ts927export function getLocalhostAddressIfDiffersFromDNS():
LOWpackages/vite/src/node/utils.ts995export function extractHostnamesFromCerts(
LOWpackages/vite/src/node/utils.ts1083export function extractHostnamesFromSubjectAltName(
LOWpackages/vite/src/node/utils.ts1143function backwardCompatibleWorkerPlugins(plugins: any) {
LOWpackages/vite/src/node/utils.ts1306function setupRollupOptionCompatForEnvironment(environment: any): any {
LOWpackages/vite/src/node/utils.ts1317export function hasBothRollupOptionsAndRolldownOptions(
LOWpackages/vite/src/node/utils.ts1808export function formatAndTruncateFileList(files: string[]): {
LOWpackages/vite/src/node/deprecations.ts44export function isFutureDeprecationEnabled(
LOWpackages/vite/src/node/packages.ts162export function findNearestMainPackageData(
LOWpackages/vite/src/node/config.ts243function defaultCreateClientDevEnvironment(
LOWpackages/vite/src/node/config.ts262function defaultCreateDevEnvironment(name: string, config: ResolvedConfig) {
LOWpackages/vite/src/node/config.ts887export function resolveDevEnvironmentOptions(
LOWpackages/vite/src/node/config.ts917function resolveEnvironmentOptions(
LOWpackages/vite/src/node/config.ts1001export function getDefaultEnvironmentOptions(
LOWpackages/vite/src/node/config.ts1084function resolveEnvironmentResolveOptions(
LOWpackages/vite/src/node/config.ts1177function resolveDepOptimizationOptions(
LOWpackages/vite/src/node/config.ts1336async function setOptimizeDepsPluginNames(resolvedConfig: ResolvedConfig) {
LOWpackages/vite/src/node/config.ts1355function applyDepOptimizationOptionCompat(resolvedConfig: ResolvedConfig) {
LOWpackages/vite/src/node/config.ts2547async function loadConfigFromBundledFile(
LOWpackages/vite/src/node/config.ts2688function optimizeDepsDisabledBackwardCompatibility(
LOWpackages/vite/src/node/idResolver.ts23export function createBackCompatIdResolver(
LOWpackages/vite/src/node/build.ts419export function resolveBuildEnvironmentOptions(
85 more matches not shown…
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippet
CRITICALpackages/vite/src/node/server/middlewares/static.ts336${server.config.server.fs.allow.map((i) => `- ${i}`).join('\n')}
CRITICALpackages/vite/src/node/server/middlewares/indexHtml.ts179 const mod = server.environments.client.moduleGraph.urlToModuleMap.get(
Over-Commented Block12 hits · 12 pts
SeverityFileLineSnippet
LOWplayground/css/vite.config.js81 css: {
LOWplayground/ssr-deps/module-condition/module.js1// this is written in ESM but the file extension implies this is evaluated as CJS.
LOW…mize-deps/dynamic-use-dep-alias-using-absolute-path.js1// This is used to setup a test scenario, where dep scanner
LOWplayground/optimize-deps/unused-split-entry.js1import msg from '@vitejs/test-added-in-entries'
LOW…d/optimize-deps/dep-alias-using-absolute-path/index.js1// Importing a shared dependency used by other modules,
LOWpackages/vite/types/import-meta.d.ts1/// <reference path="./importMeta.d.ts" />
LOWpackages/vite/src/types/ws.d.ts1// Modified and inlined to avoid extra dependency
LOWpackages/vite/src/node/config.ts1281 if (
LOWpackages/vite/src/node/config.ts1301 // - minifyWhitespace, minifyIdentifiers, minifySyntax
LOWpackages/vite/src/node/plugins/html.ts461 if (startOffset === 0) return 0
LOWpackages/vite/src/node/plugins/esbuild.ts341 EsbuildTransformOptions['format'] | undefined
LOWpackages/vite/src/node/server/transformRequest.ts81 options: TransformOptionsInternal,
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMdocs/guide/static-deploy-github-pages.yaml2# This file is extracted as a separate file so that renovate can update the action versions
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOW…kages/vite/src/node/server/middlewares/htmlFallback.ts57 // so we need to check if the file exists