More than 300 powerful ESLint rules
This report summarizes scanner evidence for sindresorhus/eslint-plugin-unicorn, a JavaScript project with 5,284 GitHub stars. SynthScan examined 344,795 lines of code across 1575 source files, recording 473 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 470 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 442 finding(s).
Which changes need focused human review? 473 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 473 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/prefer-regexp-test.js | 597 | function stringSearchAssertionPattern(pattern: string) { | CODE |
| LOW⚡ | test/prefer-regexp-test.js | 601 | function stringMatchAssertionPattern(pattern: string) { | CODE |
| LOW⚡ | test/prefer-regexp-test.js | 609 | function functionActionCreatorMatcher(actionCreator: (() => void) & {match(action: unknown): boolean}, action: unknow | CODE |
| LOW⚡ | test/prefer-regexp-test.js | 617 | function stringOrObjectExecReceiver(regexp: string | object, value: string) { | CODE |
| LOW⚡ | test/prefer-regexp-test.js | 629 | function regexpOrObjectExecArgument(regexp: RegExp, value: RegExp | object) { | CODE |
| LOW⚡ | test/prefer-regexp-test.js | 637 | function stringOrNumberMatchPattern(pattern: string | number) { | CODE |
| LOW⚡ | test/prefer-regexp-test.js | 641 | function stringOrRegExpMatchPattern(pattern: string | RegExp) { | CODE |
| LOW⚡ | test/prefer-regexp-test.js | 645 | function stringOrUndefinedSearchPattern(pattern: string | undefined) { | CODE |
| LOW | test/prefer-regexp-test.js | 661 | function genericReadonlyArraySearchPattern(pattern: ReadonlyArray<string>) { | CODE |
| LOW | test/unit/boolean.js | 38 | function findFirstMemberExpression(code, languageOptions = {}) { | CODE |
| LOW | test/utils/test.js | 65 | function assertNoManualEmptyFileTestCases(ruleId, testCases) { | CODE |
| LOW | …shared/no-unnecessary-length-or-infinity-rule-tests.js | 4 | function createArgumentEvaluationFixtures(method) { | CODE |
| LOW | scripts/rename-rule.js | 69 | function replaceRuleIdInRulesIndex(text, from, to) { | CODE |
| LOW | rules/no-break-in-nested-loop.js | 22 | function isNestedControlFlowStatement(node, sourceCode) { | CODE |
| LOW | rules/prefer-switch.js | 133 | function getBlockStatementLastNode(blockStatement) { | CODE |
| LOW | rules/prefer-switch.js | 155 | function shouldInsertBreakStatement(node) { | CODE |
| LOW | rules/prefer-group-by.js | 326 | function isBlockWithSingleExpression(block, predicate) { | CODE |
| LOW | rules/prefer-group-by.js | 357 | function getMapGroupVariableDeclaration(statement, callbackParts) { | CODE |
| LOW | rules/prefer-group-by.js | 475 | function getGroupByMethodForBinding(initialValue, declaration, context) { | CODE |
| LOW | rules/prefer-group-by.js | 485 | function hasRepeatedSideEffectfulKey(statements, key, context) { | CODE |
| LOW | rules/prefer-iterator-zip.js | 188 | function getSupportedLoopInformation(node, context) { | CODE |
| LOW⚡ | rules/no-unsafe-promise-all-settled-values.js | 110 | function isPromiseFulfilledResultArrayTypeAnnotation(node) { | CODE |
| LOW⚡ | rules/no-unsafe-promise-all-settled-values.js | 114 | function isUnsafePromiseSettledResultType(type) { | CODE |
| LOW⚡ | rules/no-unsafe-promise-all-settled-values.js | 123 | function isPromiseFulfilledResultType(type) { | CODE |
| LOW⚡ | rules/no-unsafe-promise-all-settled-values.js | 147 | function isPromiseSettledResultArrayFromTypeInformation(node, context) { | CODE |
| LOW⚡ | rules/no-unsafe-promise-all-settled-values.js | 154 | function isPromiseFulfilledResultFromTypeInformation(node, context) { | CODE |
| LOW⚡ | rules/no-unsafe-promise-all-settled-values.js | 158 | function isPromiseFulfilledResultArrayFromTypeInformation(node, context) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 58 | function getArrayElementTypeAnnotation(node) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 80 | function isUnsafePromiseSettledResultTypeAnnotation(node) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 93 | function isUnsafePromiseSettledResultArrayTypeAnnotation(node) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 97 | function isPromiseFulfilledResultTypeAnnotation(node) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 173 | function isPromiseSettledResultVariable(node, context, visitedVariables) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 202 | function isPromiseFulfilledResultVariable(node, context, visitedVariables) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 231 | function isPromiseSettledResultArray(node, context, visitedVariables = new Set()) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 365 | function hasFulfilledStatusCheckInConjunction(node, statusContext) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 380 | function hasUnfulfilledStatusCheckInDisjunction(node, statusContext) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 443 | function isGuardedByPreviousUnfulfilledExit(node, statusContext, context, branchAlwaysExits) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 473 | function isKnownFulfilledResultArray(node, context, visitedVariables = new Set()) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 494 | function isGuardedByFulfilledCheck(node, readContext) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 581 | function isDerivedFromVariableThroughFilters(node, variable, context) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 592 | function hasFulfilledFilterInChain(node) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 664 | function getThenMapCallbackProblem(node, resultsVariable, context, branchAlwaysExits) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 664 | function getThenMapCallbackProblem(node, resultsVariable, context, branchAlwaysExits) { | CODE |
| LOW | rules/no-unsafe-promise-all-settled-values.js | 696 | function getThenCallbackProblem(callExpression, context, branchAlwaysExits) { | CODE |
| LOW | rules/prefer-uint8array-hex.js | 96 | function getZeroPrefixedExpression(node) { | CODE |
| LOW | rules/no-unreadable-array-destructuring.js | 32 | function getMaximumConsecutiveIgnoredElements(elements) { | CODE |
| LOW | rules/no-lonely-if.js | 114 | function getOuterConditionGapTextPieces(outerConditionGap, outerLeadingContent) { | CODE |
| LOW | rules/prefer-export-from.js | 32 | function hasAttachedJSDocumentComment(node, sourceCode) { | CODE |
| LOW | rules/prefer-export-from.js | 73 | function getSourceAndAssertionsText(declaration, context) { | CODE |
| LOW | rules/prefer-aggregate-error.js | 97 | function isErrorArrayTypeReferenceAnnotation(node, scope, context, visitedTypeVariables) { | CODE |
| LOW | rules/prefer-aggregate-error.js | 126 | function isErrorArrayTypeAnnotation(node, scope, context, visitedTypeVariables = new Set()) { | CODE |
| LOW | rules/prefer-aggregate-error.js | 223 | function isErrorArrayTypeFromTypeInformation(node, context) { | CODE |
| LOW | rules/prefer-aggregate-error.js | 227 | function hasErrorCollectionEvidence(node, context) { | CODE |
| LOW | rules/prefer-aggregate-error.js | 299 | function getPositiveLengthCheckObject(node, context) { | CODE |
| LOW | rules/prefer-aggregate-error.js | 328 | function getGuardedErrorCollection(node, context) { | CODE |
| LOW | rules/prefer-uint8array-base64.js | 41 | function unwrapTransparentExpression(node) { | CODE |
| LOW | rules/prefer-uint8array-base64.js | 97 | function shouldIgnoreBufferFromInput(node, context) { | CODE |
| LOW | rules/no-multiple-promise-resolver-calls.js | 40 | function isNonThrowingReturnBranch(node) { | CODE |
| LOW | rules/no-multiple-promise-resolver-calls.js | 69 | function registerResolverReferences(executor, resolverReferenceExecutors, sourceCode) { | CODE |
| LOW | rules/no-multiple-promise-resolver-calls.js | 150 | function cloneFinallyBlocksByCatchClause(finallyBlocksByCatchClause) { | CODE |
| 382 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/package.js | 521 | COMMENT | |
| LOW | test/package.js | 541 | // result[key] = languageOptions; | COMMENT |
| LOW | test/prefer-optional-catch-binding.js | 101 | // code: outdent` | COMMENT |
| LOW | test/no-manually-wrapped-comments.js | 41 | outdent` | COMMENT |
| LOW | test/no-manually-wrapped-comments.js | 361 | // MARK: - Networking | COMMENT |
| LOW | test/no-manually-wrapped-comments.js | 421 | outdent` | COMMENT |
| LOW | test/comment-content.js | 201 | '// applications and application', | COMMENT |
| LOW | test/comment-content.js | 221 | // gif | COMMENT |
| LOW | test/comment-content.js | 241 | `// cpu | COMMENT |
| LOW | test/comment-content.js | 261 | // nginx | COMMENT |
| LOW | test/comment-content.js | 281 | // nfc | COMMENT |
| LOW | test/comment-content.js | 301 | `// We sanitize the input, | COMMENT |
| LOW | test/comment-content.js | 841 | t.assert.strictEqual(result.fixed, true); | COMMENT |
| LOW | test/comment-content.js | 861 | // JSON/XML formats. | COMMENT |
| LOW | test/comment-content.js | 901 | // api [deprecated]. uses json. | COMMENT |
| LOW | test/comment-content.js | 1041 | // - {api: json} | COMMENT |
| LOW | test/comment-content.js | 1061 | test('ignores prompt-prefixed command-line snippets', t => { | COMMENT |
| LOW | test/comment-content.js | 1081 | COMMENT | |
| LOW | test/comment-content.js | 1101 | }); | COMMENT |
| LOW | test/comment-content.js | 1121 | COMMENT | |
| LOW | docs/rules/expiring-todo-comments.md | 261 | - CSS, HTML, JSONC, JSON5, Markdown, SOML, TOML, and YAML comments are supported with their respective ESLint plugins. | COMMENT |
| LOW | docs/rules/expiring-todo-comments.md | 281 | // TODO [peer:eslint@>=8]: Whoops, our minimum supported `eslint` is already >= 8. | COMMENT |
| LOW | rules/prefer-dispose.js | 101 | // Without it, `using` would throw a `TypeError` at runtime, so this avoids suggesting broken code. | COMMENT |
| LOW | rules/no-unused-builtin-method-return.js | 161 | // - explicitly supported typed variables | COMMENT |
| LOW | rules/no-unused-builtin-method-return.js | 241 | // - trivial identifier aliases to that same initializer, like `const alias = values` | COMMENT |
| LOW | rules/shared/name-replacements.js | 301 | // Ember class name | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | rules/text-encoding-identifier-case.js | 71 | && node.parent.parent.name.name.toLowerCase() === element; | CODE |
| CRITICAL | rules/no-useless-fallback-in-spread.js | 28 | && node.parent.parent.parent.properties.includes(node.parent.parent) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/try-complexity.js | 35 | function doSomething() { | CODE |
| LOW | scripts/create-rule.js | 45 | async function getData() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rules/consistent-compound-words.js | 53 | placeHolder: 'placeholder', | CODE |