Repository Analysis

eslint/eslint

Find and fix problems in your JavaScript code.

1.0 Likely human-written View on GitHub
1.0
Adjusted Score
1.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
27,257
Stars
JavaScript
Language
557,518
Lines of Code
1399
Files
401
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 2HIGH 1MEDIUM 39LOW 359

Pattern Findings

401 matches across 9 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers285 hits · 285 pts
SeverityFileLineSnippet
LOWeslint.config.js65function createInternalFilesPatterns(pattern = null) {
LOWMakefile.js160function generateFormatterExamples() {
LOWMakefile.js458function splitCommandResultToLines(result) {
LOWMakefile.js512function getFirstVersionOfDeletion(filePath) {
LOWMakefile.js998function checkHyperfineInstallation() {
LOWMakefile.js1036function downloadMultifilesTestTarget() {
LOWMakefile.js1053function createConfigForPerformanceTest() {
LOWtools/code-sample-minimizer.js70 function generateNewIdentifierName() {
LOWtools/update-rule-type-headers.js40function escapeForMultilineComment(line) {
LOWtools/config-rule.js275function generateConfigsFromSchema(schema) {
LOWtools/internal-rules/no-invalid-meta.js39function getMetaPropertyFromExportsNode(exportsNode) {
LOWtests/bench/large.js13177 function comprehensiveArrayExpression() {
LOWtests/bench/large.js14096 function destructuringExpressionMatch(tokens, value) {
LOWtests/bench/large.js15502 function destructuringAssignOrJsonValue() {
LOWtests/bench/large.js17087 function isNonAsciiIdentifierStart(code) {
LOWtests/bin/eslint.js194 function runESLintWithCrossSpawnHook(
LOWtests/lib/linter/file-report.js1552 function assertAdditionalFixNoMatch() {
LOWtests/lib/linter/file-report.js1564 function assertSuggestionFixMatches() {
LOWtests/lib/linter/file-report.js1585 function assertSuggestionFixNoMatch() {
LOWtests/lib/shared/runtime-info.js31function setupSpawnSyncStubReturnVals(stub, returnVals) {
LOWtests/lib/rules/no-magic-numbers.js488 code: "function getNegativeSecondsInMinute() {return -60;}",
LOWtests/lib/rules/no-unused-expressions.js647 function namedFunctionInExpressionContext() {
LOWtests/lib/eslint/eslint.js15395 async function testFromOptionsModuleWithFlag(url) {
LOWtests/performance/jshint.js4632 function comprehensiveArrayExpression() {
LOWtests/performance/jshint.js5480 function destructuringExpressionMatch(
LOWtests/performance/jshint.js7011 function destructuringAssignOrJsonValue() {
LOWdocs/tools/prism-eslint-hook.js58function installPrismESLintMarkerHook() {
LOWdocs/tools/code-block-utils.js14function docsExampleCodeToParsableCode(code) {
LOW…ation-tutorial-code/example-eslint-integration.test.js8async function testExampleEslintIntegration() {
LOWdocs/src/rules/no-self-compare.md52function incrementUnlessReachedMaximum() {
LOWdocs/src/rules/no-unused-expressions.md64a() && function namedFunctionInExpressionContext () {f();}
LOWdocs/src/rules/no-await-in-loop.md177 async function loopIterationsDependOnEachOther() {
LOWdocs/src/rules/no-await-in-loop.md210 async function makeUpdatesToRateLimitedApi(thingsToUpdate) {
LOWdocs/src/assets/js/focus-visible.js8function applyFocusVisiblePolyfill(scope) {
LOWdocs/src/assets/js/focus-visible.js55 function focusTriggersKeyboardModality(el) {
LOWdocs/src/assets/js/focus-visible.js201 function addInitialPointerMoveListeners() {
LOWdocs/src/assets/js/focus-visible.js213 function removeInitialPointerMoveListeners() {
LOWlib/rule-tester/rule-tester.js166function cloneDeeplyExcludesParent(x) {
LOWlib/rule-tester/rule-tester.js264function defineStartEndAsErrorInTree(ast, visitorKeys) {
LOWlib/rule-tester/rule-tester.js309function throwForbiddenMethodError(methodName, prototype) {
LOWlib/rule-tester/rule-tester.js348function getUnsubstitutedMessagePlaceholders(message, raw, data = {}) {
LOWlib/rule-tester/rule-tester.js568function assertTestCommonProperties(item) {
LOWlib/rule-tester/rule-tester.js686function buildLazyTestLocationEstimator(invoker) {
LOWlib/config/flat-config-schema.js545function createEslintrcErrorSchema(key) {
LOWlib/config/flat-config-array.js33function wrapConfigErrorWithDetails(error, originalLength, baseLength) {
LOWlib/config/config-loader.js76function assertConfigurationExists(configFilePath, loaderOptions) {
LOWlib/config/config-loader.js126function isNativeTypeScriptSupportEnabled() {
LOWlib/config/config-loader.js141async function loadTypeScriptConfigFileWithJiti(filePath, fileURL, mtime) {
LOWlib/config/config.js410function getOrCreateValidator(rule, ruleId) {
LOWlib/linter/file-report.js67function updateLocationInformation(
LOWlib/linter/file-report.js135function normalizeMultiArgReportCall(...args) {
LOWlib/linter/file-report.js440function computeMessageFromDescriptor(descriptor, messages) {
LOWlib/linter/source-code-fixer.js26function compareMessagesByFixRange(a, b) {
LOWlib/linter/source-code-fixer.js37function compareMessagesByLocation(a, b) {
LOWlib/linter/apply-disable-directives.js65function createIndividualDirectivesRemoval(
LOWlib/linter/apply-disable-directives.js221function collectUsedEnableDirectives(directives) {
LOWlib/linter/linter.js159function addProblemIfSameSeverityAndOptions(
LOWlib/linter/linter.js294function getDirectiveCommentsForFlatConfig(
LOWlib/linter/code-path-analysis/code-path-state.js826function finalizeTestSegmentsOfFor(context, choiceContext, head) {
LOWlib/linter/code-path-analysis/code-path-analyzer.js38function isPropertyDefinitionValue(node) {
225 more matches not shown…
Decorative Section Separators38 hits · 156 pts
SeverityFileLineSnippet
MEDIUMtools/commit-readme.sh3#------------------------------------------------------------------------------
MEDIUMtools/commit-readme.sh5#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml2#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml6#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml8#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml10#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml19#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml21#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml26#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml28#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml34#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml36#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml48#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml50#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml69#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml71#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml106#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml108#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml118#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/zh-hans.yml120#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml2#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml6#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml8#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml10#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml19#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml21#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml26#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml28#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml35#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml37#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml50#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml52#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml71#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml73#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml108#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml110#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml120#------------------------------------------------------------------------------
MEDIUMdocs/src/_data/sites/en.yml122#------------------------------------------------------------------------------
Overly Generic Function Names46 hits · 59 pts
SeverityFileLineSnippet
LOWtests/lib/rules/no-shadow.js30 "(function() { var doSomething = function doSomething() {}; doSomething() }())",
LOWtests/lib/rules/no-shadow.js31 "(function() { var doSomething = foo || function doSomething() {}; doSomething() }())",
LOWtests/lib/rules/no-shadow.js32 "(function() { var doSomething = function doSomething() {} || foo; doSomething() }())",
LOWtests/lib/rules/no-shadow.js33 "(function() { var doSomething = foo && function doSomething() {}; doSomething() }())",
LOWtests/lib/rules/no-shadow.js35 code: "(function() { var doSomething = foo ?? function doSomething() {}; doSomething() }())",
LOWtests/lib/rules/no-shadow.js38 "(function() { var doSomething = foo || (bar || function doSomething() {}); doSomething() }())",
LOWtests/lib/rules/no-shadow.js39 "(function() { var doSomething = foo || (bar && function doSomething() {}); doSomething() }())",
LOWtests/lib/rules/no-shadow.js40 "(function() { var doSomething = foo ? function doSomething() {} : bar; doSomething() }())",
LOWtests/lib/rules/no-shadow.js41 "(function() { var doSomething = foo ? bar: function doSomething() {}; doSomething() }())",
LOWtests/lib/rules/no-shadow.js42 "(function() { var doSomething = foo ? bar: (baz || function doSomething() {}); doSomething() }())",
LOWtests/lib/rules/no-shadow.js43 "(function() { var doSomething = (foo ? bar: function doSomething() {}) || baz; doSomething() }())",
LOWtests/lib/rules/no-shadow.js45 code: "(function() { var { doSomething = function doSomething() {} } = obj; doSomething() }())",
LOWtests/lib/rules/no-shadow.js49 code: "(function() { var { doSomething = function doSomething() {} || foo } = obj; doSomething() }())",
LOWtests/lib/rules/no-shadow.js53 code: "(function() { var { doSomething = foo ? function doSomething() {} : bar } = obj; doSomething() }())",
LOWtests/lib/rules/no-shadow.js57 code: "(function() { var { doSomething = foo ? bar : function doSomething() {} } = obj; doSomething() }())",
LOWtests/lib/rules/no-shadow.js61 code: "(function() { var { doSomething = foo || (bar ? baz : (qux || function doSomething() {})) || quux } = obj; doS
LOWtests/lib/rules/no-shadow.js65 code: "function foo(doSomething = function doSomething() {}) { doSomething(); }",
LOWtests/lib/rules/no-shadow.js69 code: "function foo(doSomething = function doSomething() {} || foo) { doSomething(); }",
LOWtests/lib/rules/no-shadow.js73 code: "function foo(doSomething = foo ? function doSomething() {} : bar) { doSomething(); }",
LOWtests/lib/rules/no-shadow.js77 code: "function foo(doSomething = foo ? bar : function doSomething() {}) { doSomething(); }",
LOWtests/lib/rules/no-shadow.js81 code: "function foo(doSomething = foo || (bar ? baz : (qux || function doSomething() {})) || quux) { doSomething(); }
LOWtests/lib/rules/no-unused-vars.js141 "(function() { var doSomething = function doSomething() {}; doSomething() }())",
LOWtests/lib/rules/no-inner-declarations.js28 "function doSomething() { }",
LOWtests/lib/rules/no-inner-declarations.js29 "function doSomething() { function somethingElse() { } }",
LOWtests/lib/rules/no-inner-declarations.js30 "(function() { function doSomething() { } }());",
LOWtests/lib/rules/no-inner-declarations.js71 "function doSomething() { while (test) { var foo; } }",
LOWtests/lib/rules/no-inner-declarations.js74 { code: "function doSomething() { var foo; }", options: ["both"] },
LOWtests/lib/rules/no-inner-declarations.js139 code: "'use strict' \n if (test) { function doSomething() { } }",
LOWtests/lib/rules/no-inner-declarations.js144 code: "'use strict' \n if (test) { function doSomething() { } }",
LOWtests/lib/rules/no-inner-declarations.js149 code: "function foo() {'use strict' \n if (test) { function doSomething() { } } }",
LOWtests/lib/rules/no-inner-declarations.js173 code: "if (test) { function doSomething() { } }",
LOWtests/lib/rules/no-inner-declarations.js316 code: "function doSomething() { do { function somethingElse() { } } while (test); }",
LOWtests/lib/rules/no-inner-declarations.js328 code: "(function() { if (test) { function doSomething() { } } }());",
LOWtests/lib/rules/no-inner-declarations.js353 code: "function doSomething() { if (test) { var foo = 42; } }",
LOWtests/lib/rules/no-inner-declarations.js449 code: "if (test) { function doSomething() { } }",
LOWtests/lib/rules/no-inner-declarations.js463 code: "if (test) { function doSomething() { } }",
LOWtests/lib/rules/no-inner-declarations.js477 code: "'use strict' \n if (test) { function doSomething() { } }",
LOWtests/lib/rules/no-inner-declarations.js491 code: "'use strict' \n if (test) { function doSomething() { } }",
LOWtests/lib/rules/no-inner-declarations.js505 code: "'use strict' \n if (test) { function doSomething() { } }",
LOWtests/lib/rules/no-inner-declarations.js547 code: "function doSomething() { 'use strict' \n do { function somethingElse() { } } while (test); }",
LOWtests/lib/rules/camelcase.js32 "function doSomething(){}",
LOWtests/lib/rules/no-return-assign.js159 code: `function doSomething() {
LOWtests/lib/rules/no-return-assign.js169 code: `function doSomething() {
LOWtests/lib/rules/no-return-assign.js181 code: `function doSomething() {
LOWtests/lib/rules/no-return-assign.js192 code: `function doSomething() {
LOWlib/linter/timing.js166 function getData() {
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippet
CRITICALtests/bench/large.js11519 state.tokens.curr.left.first.forEach(
CRITICALtests/performance/jshint.js2968 state.tokens.curr.left.first.forEach(
Fake / Example Data13 hits · 17 pts
SeverityFileLineSnippet
LOWtests/lib/rules/preserve-caught-error.js544 throw new AggregateError([], "Lorem ipsum");
LOWtests/lib/rules/preserve-caught-error.js556 throw new AggregateError([], "Lorem ipsum", { cause: err });
LOWtests/lib/rules/prefer-arrow-callback.js257 ) /* Lorem ipsum
LOWtests/lib/rules/prefer-arrow-callback.js258 dolor sit amet. */ {
LOWtests/lib/rules/prefer-arrow-callback.js267 ) => /* Lorem ipsum
LOWtests/lib/rules/prefer-arrow-callback.js268 dolor sit amet. */ {
LOWtests/lib/rules/prefer-arrow-callback.js495 ) /* Lorem ipsum
LOWtests/lib/rules/prefer-arrow-callback.js496 dolor sit amet. */ {
LOWtests/lib/rules/prefer-arrow-callback.js505 ) => /* Lorem ipsum
LOWtests/lib/rules/prefer-arrow-callback.js506 dolor sit amet. */ {
LOWtests/lib/services/warning-service.js78 const message = `Lorem ipsum ${flag}.`;
LOWtests/lib/services/warning-service.js127 const message = `Lorem ipsum ${flag}.`;
LOWdocs/src/rules/no-alert.md31prompt("What's your name?", "John Doe");
Verbosity Indicators6 hits · 11 pts
SeverityFileLineSnippet
LOWtests/lib/rules/multiline-comment-style.js56 // Step 1: Do the first thing
LOWlib/config/config.js77 // if the plugin exists then we need to check if the rule exists
LOWlib/languages/js/source-code/source-code.js882 // Step 1: Parse the directive
LOWlib/languages/js/source-code/source-code.js889 // Step 2: Extract the directive value
LOWlib/languages/js/source-code/source-code.js897 // Step 3: Validate the directive does not span multiple lines
LOWlib/languages/js/source-code/source-code.js912 // Step 4: Extract the directive value and create the Directive object
Over-Commented Block9 hits · 9 pts
SeverityFileLineSnippet
LOWtests/bench/large.js6221 65468, 65469, 65470, 65474, 65475, 65476, 65477, 65478,
LOWtests/bench/large.js6241 // sell copies of the Software, and to permit persons to whom the Software is
LOWtests/bench/large.js6721 keys.push(key);
LOWtests/bench/large.js7181 //
LOWtests/performance/jshint.js2301 // This is the heart of JSHINT, the Pratt parser. In addition to parsing, it
LOWdocs/src/extend/custom-rules.md761 },
LOWdocs/src/assets/js/focus-visible.js261 // We detect that a node is a ShadowRoot by ensuring that it is a
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply need
LOW.github/workflows/codeql-analysis.yml61 # ℹ️ Command-line programs to run using the OS shell.
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippet
HIGHdocs/src/contribute/ai-policy.md24- **Review your work:** Before submitting a pull request generated by AI, you are expected to have thoroughly reviewed a
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMlib/cli-engine/formatters/formatters-meta.json8 "description": "Outputs JSON-serialized results. The `json-with-metadata` provides the same linting results as the [