Repository Analysis

webpack/webpack

A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

0.6 Likely human-written View on GitHub
0.6
Adjusted Score
0.6
Raw Score
100%
Time Factor
2026-05-30
Last Push
65,749
Stars
JavaScript
Language
421,363
Lines of Code
10241
Files
177
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 14MEDIUM 1LOW 162

Pattern Findings

177 matches across 7 categories. Click a row to expand file-level details.

Over-Commented Block111 hits · 110 pts
SeverityFileLineSnippet
LOWtooling/generate-html-entities.js1/*
LOWtooling/generate-html-entities.js121 `// #region html entities
LOWtest/walkHtmlTokens.unittest.js1941 // at most 31 chars. The scanner bounds the consume loop at
LOWtest/test262.spectest.js801 // known. Pre-knowing exports would require a larger architectural
LOWtest/test262.spectest.js881 // `delete super[(super(), 0)]` in a derived constructor — webpack rewrites
LOWtest/test262.spectest.js1021 "expressions/dynamic-import/catch/nested-block-import-catch-instn-iee-err-circular.js",
LOWtest/hotPlayground/element-dependency.js1// This file doesn't accept itself neither the parent accepts it.
LOWtest/statsCases/split-chunks-max-size/very-big.js1// content content content content content content content content
LOWtest/statsCases/split-chunks-max-size/very-big.js21// content content content content content content content content
LOWtest/statsCases/split-chunks-max-size/big.js1// content content content content content content content content
LOW…statsCases/split-chunks-max-size/subfolder/very-big.js1// content content content content content content content content
LOW…statsCases/split-chunks-max-size/subfolder/very-big.js21// content content content content content content content content
LOWtest/statsCases/split-chunks-max-size/subfolder/big.js1// content content content content content content content content
LOW…tsCases/split-chunks-max-size/inner-module/very-big.js1// content content content content content content content content
LOW…tsCases/split-chunks-max-size/inner-module/very-big.js21// content content content content content content content content
LOW…t/statsCases/split-chunks-max-size/inner-module/big.js1// content content content content content content content content
LOW…es/split-chunks-max-size/in-some-directory/very-big.js1// content content content content content content content content
LOW…es/split-chunks-max-size/in-some-directory/very-big.js21// content content content content content content content content
LOW…tsCases/split-chunks-max-size/in-some-directory/big.js1// content content content content content content content content
LOWtest/statsCases/module-reasons/c.js1// empty
LOWtest/cases/parsing/issue-17063/index.js1import foo, { named } from "./lib";
LOW…nfigCases/contenthash/hash-placeholders/test.config.js81 expect(icon).toBeDefined();
LOW…nfigCases/contenthash/hash-placeholders/test.config.js121 // `style.css` references `./bg.png` via `url(...)`, and webpack
LOW…nfigCases/contenthash/hash-placeholders/test.config.js141 const bundleContent = fs.readFileSync(path.join(dir, bundle), "utf8");
LOW…gCases/contenthash/hash-placeholders/webpack.config.js1"use strict";
LOWtest/configCases/records/issue-295/file.js1// just a file
LOWtest/configCases/css/parsing/cases/selectors.css241a[href='place']::before {}
LOWtest/configCases/css/parsing/cases/selectors.css261#\31 23 {}
LOWtest/configCases/css/parsing/cases/selectors.css281#f\~o\~o {}
LOWtest/configCases/css/parsing/cases/selectors.css301#\<p\> {}
LOW…/configCases/require/esm-module-exports/test.config.js1"use strict";
LOWtest/configCases/require/esm-module-exports/index.js1// Verify webpack's `require(esm)` "module.exports" unwrapping matches Node's
LOW…nfigCases/defer-import/json-import-attributes/index.js21
LOW…onfigCases/defer-import/wasm-async-attributes/index.js1function assertIsNamespaceObject(ns) {
LOW…onfigCases/defer-import/wasm-async-attributes/index.js61 expect(Reflect.has(dyn, "getNumber")).toBe(true);
LOWtest/configCases/defer-import/css-export-types/index.js1// `import defer` coverage for every CSS module exportType webpack supports
LOWtest/configCases/defer-import/asset-modules/index.js1// `import defer` coverage for every asset module type webpack supports.
LOWtest/configCases/inline-exports/basic/index.js181})
LOWtest/configCases/inline-exports/basic/index.js201// } else {
LOW…es/html/css-mixed-link-and-js-import/webpack.config.js1"use strict";
LOW…es/html/css-runtime-and-split-chunks/webpack.config.js1"use strict";
LOWtest/configCases/rule-set/simple/c.js1// never used
LOWtest/configCases/rule-set/simple-use-fn-array/c.js1// never used
LOWtest/configCases/rule-set/simple-use-array-fn/c.js1// never used
LOW…igCases/inner-graph/issue-12669-mini/webpack.config.js21 // "./dependency": ["y"]
LOWtest/hotCases/runtime/root-error/index.js41// will never happen
LOWtest/hotCases/html/html-head-change/index.js1import html from "./page.html";
LOW…t/hotCases/html/html-external-update-tracking/index.js1import "./page.html";
LOWassembly/hash/xxhash64.asm.ts1// //////////////////////////////////////////////////////////
LOWexamples/html-template/src/app.js1// This script is referenced by `<script src="./app.js">` in the HTML entry.
LOWexamples/typescript/webpack.config.js1"use strict";
LOWexamples/typescript/README.md61//
LOWexamples/module-federation/src/index.js1// Sharing modules requires that all remotes are initialized
LOWexamples/top-level-await/Actions.js1// import() doesn't care about whether a module is an async module or not
LOWexamples/top-level-await/README.md81// see CreateUserAction above
LOWexamples/top-level-await/README.md141
LOWexamples/multi-compiler/mobile-stuff.js1// mobile only stuff
LOWexamples/custom-javascript-parser/webpack.config.js81 // {
LOWexamples/custom-javascript-parser/README.md401 module: {
LOWexamples/harmony-interop/reexport-commonjs.js1// reexport a CommonJs module
51 more matches not shown…
Cross-Language Confusion (JS/TS)14 hits · 85 pts
SeverityFileLineSnippet
HIGHtypes.d.ts24056 print(
HIGHtest/Defaults.unittest.js66 print(received) {
HIGHtest/Defaults.unittest.js79 print(received) {
HIGHtest/compileBooleanMatcher.unittest.js33 print(received) {
HIGHtest/Errors.test.js52 print(val) {
HIGHtest/Errors.test.js66 print(received) {
HIGHtest/Errors.test.js78 print(received) {
HIGHexamples/module-code-splitting/example.js5 print(counter.value);
HIGHexamples/module-code-splitting/example.js9 print(counter.value);
HIGHexamples/module-code-splitting/example.js11 print(counter.value);
HIGHexamples/module/example.js3print(value);
HIGHexamples/module/example.js7print(value);
HIGHexamples/module/example.js9print(value);
HIGHlib/stats/StatsPrinter.js190 print(type, object, baseContext) {
Hyper-Verbose Identifiers37 hits · 37 pts
SeverityFileLineSnippet
LOWdeclarations.d.ts168 export function moduleContextFromModuleAST(module: Module): {
LOWtest/statsCases/cause-error/webpack.config.js30function createWebpackErrorWithCause(message, options) {
LOW…igCases/rule-set/simple-use-fn-array/webpack.config.js7function createFunctionArrayFromUseArray(useArray) {
LOWtest/configCases/inner-graph/issue-11678/module.js181function showSortManualButtonState() {
LOWtest/configCases/inner-graph/issue-11678/module.js217async function onInsertFromTemplateDialog() {
LOWtest/configCases/inner-graph/issue-11678/module.js1073async function doCreateAndShowTableWidget(
LOWtest/configCases/inner-graph/issue-11678/module.js2486async function showAssignResourcesDialog(appendTo) {
LOWtest/configCases/inner-graph/altaskitButton/module.js104 value: function componentWillReceiveProps(nextProps) {
LOW…mangle-with-destructuring-assignment/webpack.config.js23 function getJsonCodeGeneratedSource(compiler) {
LOWtest/helpers/supportsArrowFunctionExpression.js3module.exports = function supportArrowFunctionExpression() {
LOWtest/helpers/supportsLogicalAssignment.js3module.exports = function supportsLogicalAssignment() {
LOWtest/helpers/supportsOptionalCatchBinding.js3module.exports = function supportsOptionalCatchBinding() {
LOWtest/helpers/supportsIteratorDestructuring.js3module.exports = function supportsIteratorDestructuring() {
LOWtest/helpers/infrastructureLogErrors.js20module.exports = function filterInfraStructureErrors(logs, config) {
LOWtest/helpers/supportsObjectDestructuring.js3module.exports = function supportsObjectDestructuring() {
LOWtest/helpers/supportsNullishCoalescing.js3module.exports = function supportsNullishCoalescing() {
LOWexamples/externals/README.md57(function webpackUniversalModuleDefinition(root, factory) {
LOWexamples/wasm-complex/memory.js1async function getMemoryFromParentInWorker() {
LOWexamples/wasm-complex/README.md61async function getMemoryFromParentInWorker() {
LOWexamples/wasm-complex/README.md195async function getMemoryFromParentInWorker() {
LOWexamples/multi-part-library/README.md43(function webpackUniversalModuleDefinition(root, factory) {
LOWexamples/multi-part-library/README.md125(function webpackUniversalModuleDefinition(root, factory) {
LOWexamples/harmony-library/README.md26(function webpackUniversalModuleDefinition(root, factory) {
LOWlib/ContextModule.js926function webpackAsyncContextResolve(req) {
LOWlib/ContextModule.js980function webpackAsyncContextResolve(req) {
LOWlib/ContextModule.js1048function webpackAsyncContextResolve(req) {
LOWlib/optimize/InnerGraph.js116function isDependencyUsedByExports(
LOWlib/util/traverseDestructuringAssignmentProperties.js19function traverseDestructuringAssignmentProperties(
LOWlib/runtime/MakeDeferredNamespaceObjectRuntime.js19function getMakeDeferredNamespaceModeFromExportsType(exportsType) {
LOWlib/runtime/MakeDeferredNamespaceObjectRuntime.js35function getOptimizedDeferredModule(
LOWlib/dependencies/ImportParserPlugin.js67function tagDynamicImportReferenced(parser, importCall, variableName) {
LOWlib/dependencies/ImportParserPlugin.js87function getFulfilledCallbackNamespaceObj(importThen) {
LOWlib/dependencies/ImportParserPlugin.js108function walkImportThenFulfilledCallback(
LOWlib/dependencies/HarmonyImportDependencyParserPlugin.js171 function getNonOptionalMemberChain(node, count) {
LOWlib/library/UmdLibraryPlugin.js241 expr = `(function webpackLoadOptionalExternalModule() { try { return ${expr}; } catch(e) {} }())`;
LOWlib/library/UmdLibraryPlugin.js287 `function webpackLoadOptionalExternalModuleAmd(${wrapperArguments}) {\n` +
LOWlib/library/UmdLibraryPlugin.js313 `(function webpackUniversalModuleDefinition(root, factory) {\n${getAuxiliaryComment(
Overly Generic Function Names10 hits · 10 pts
SeverityFileLineSnippet
LOWtest/cases/inner-graph/switch/module.js21function doSomething(obj) {
LOWtest/configCases/chunks-order/module/nested-shared.js1function doSomething() {}
LOWtest/configCases/chunks-order/module/shared.js3function doSomething() {}
LOWtest/configCases/chunks-order/module/dependency.js1function doSomething() {}
LOWtest/configCases/chunks-order/cjs/nested-shared.js1function doSomething() {}
LOWtest/configCases/chunks-order/cjs/shared.js3function doSomething() {}
LOWtest/configCases/chunks-order/cjs/dependency.js1function doSomething() {}
LOW…t/configCases/plugins/manifest-plugin/nested-shared.js1function doSomething() {}
LOWtest/configCases/plugins/manifest-plugin/shared.js3function doSomething() {}
LOWtest/configCases/plugins/manifest-plugin/dependency.js1function doSomething() {}
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippet
LOWlib/FlagDependencyExportsPlugin.js51 // Step 1: Try to restore cached provided export info from cache
LOWlib/dependencies/CommonJsExportsParserPlugin.js63 * The purpose of this function is to check whether an expression is a truthy literal or not. This is
LOWlib/dependencies/CommonJsExportsParserPlugin.js80 * The purpose of this function is to check whether an expression is a falsy literal or not. This is
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMtest/configCases/defer-import/asset-modules/index.js49// robust if a user has a stricter `core.autocrlf` override.
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWlib/dependencies/WorkerDependency.js43 // If options are updated, don't forget to update the hash and serialization functions