Repository Analysis

babel/babel

🐠 Babel is a compiler for writing next generation JavaScript.

2.1 Likely human-written View on GitHub
2.1
Adjusted Score
2.1
Raw Score
100%
Time Factor
2026-05-29
Last Push
43,911
Stars
TypeScript
Language
238,523
Lines of Code
2016
Files
505
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 6HIGH 1MEDIUM 3LOW 495

Pattern Findings

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

Hyper-Verbose Identifiers414 hits · 365 pts
SeverityFileLineSnippet
LOWGulpfile.ts141function generateHelperGlobalsData(filename: string) {
LOWGulpfile.ts534 function babelPluginInlineConstNumericObjects({ types: t }) {
LOWbabel.config.ts383function pluginRequiredVersionMacro(
LOWbabel.config.ts431function transformNamedBabelTypesImportToDestructuring({
LOWbabel.config.ts481function pluginReplaceTSImportExtension() {
LOWbabel.config.ts546function pluginBabelParserTokenType({
LOWbabel.config.ts573function pluginGeneratorOptimization({ types: t }: PluginAPI) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt1916 function containsPossibleTopLevelAwait(node: Node) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt1921 function findNextStatementWithAwait(statements: NodeArray<Statement>, start: number) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt1930 function findNextStatementWithoutAwait(statements: NodeArray<Statement>, start: number) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2934 function nextTokenIsIdentifierOrKeyword() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2939 function nextTokenIsIdentifierOrKeywordOrGreaterThan() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2944 function isHeritageClauseExtendsOrImplementsKeyword(): boolean {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt6634 function parseArgumentOrArrayLiteralElement(): Expression {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt6644 function parseArrayLiteralExpression(): ArrayLiteralExpression {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt6654 function parseObjectLiteralElement(): ObjectLiteralElementLike {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt7102 function nextTokenIsIdentifierOrKeywordOnSameLine() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt7107 function nextTokenIsClassKeywordOnSameLine() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt7112 function nextTokenIsFunctionKeywordOnSameLine() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt7117 function nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt8403 function tokenAfterImportDefinitelyProducesImportDeclaration() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt8407 function tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt8413 function parseImportEqualsDeclaration(pos: number, hasJSDoc: boolean, modifiers: NodeArray<ModifierLike> | undefined
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt8482 function parseNamedImportsOrExports(kind: SyntaxKind.NamedImports): NamedImports;
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt8483 function parseNamedImportsOrExports(kind: SyntaxKind.NamedExports): NamedExports;
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt8484 function parseNamedImportsOrExports(kind: SyntaxKind): NamedImportsOrExports {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt9933 function moveElementEntirelyPastChangeRange(element: IncrementalNode, isArray: false, delta: number, oldText: string
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt9934 function moveElementEntirelyPastChangeRange(element: IncrementalNodeArray, isArray: true, delta: number, oldText: st
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt9935 function moveElementEntirelyPastChangeRange(element: IncrementalNode | IncrementalNodeArray, isArray: boolean, delta
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt463export function isFileProbablyExternalModule(sourceFile: SourceFile) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt470function isAnExternalModuleIndicatorNode(node: Node) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt1325function setExternalModuleIndicator(sourceFile: SourceFile) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt1395export function parseIsolatedJSDocComment(content: string, start?: number, length?: number) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt1408export function parseJSDocTypeExpressionForTests(content: string, start?: number, length?: number) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2114 function inDisallowConditionalTypesContext() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2197 function nextJSDocCommentTextToken(inBackticks: boolean): JSDocSyntaxKind | SyntaxKind.JSDocCommentTextToken {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2341 function parseErrorForMissingSemicolonAfter(node: Expression | PropertyName): void {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2431 function parseSemicolonAfterPropertyName(name: PropertyName, type: TypeNode | undefined, initializer: Expression | u
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2475 function parseExpectedMatchingBrackets(openKind: PunctuationSyntaxKind, closeKind: PunctuationSyntaxKind, openParsed
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2673 function parseIdentifierNameErrorOnUnicodeEscapeSequence(): Identifier {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2709 function parseComputedPropertyName(): ComputedPropertyName {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2734 function nextTokenIsOnSameLineAndCanFollowModifier() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2742 function nextTokenCanFollowModifier() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2776 function nextTokenCanFollowExportModifier(): boolean {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2781 function parseAnyContextualModifier(): boolean {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2793 function nextTokenCanFollowDefaultKeyword(): boolean {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2911 function isValidHeritageClauseObjectLiteral() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt2955 function nextTokenIsStartOfExpression() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3018 function isVariableDeclaratorListTerminator(): boolean {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3342 function isReusableVariableDeclaration(node: Node) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3376 function abortParsingListOrMoveToNextToken(kind: ParsingContext) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3527 function getExpectedCommaDiagnostic(kind: ParsingContext) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3679 function parseLiteralOfTemplateSpan(isTaggedTemplate: boolean) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3714 function parseTemplateMiddleOrTemplateTail(): TemplateMiddle | TemplateTail {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3720 function getTemplateLiteralRawText(kind: TemplateLiteralToken["kind"]) {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3753 function parseEntityNameOfTypeReference() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3757 function parseTypeArgumentsOfTypeReference() {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3775 function typeHasArrowFunctionBlockingParseError(node: TypeNode): boolean {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3808 function parseJSDocNonNullableType(): TypeNode {
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3814 function parseJSDocUnknownOrNullableType(): JSDocUnknownType | JSDocNullableType {
354 more matches not shown…
Over-Commented Block76 hits · 62 pts
SeverityFileLineSnippet
LOWbabel.config.ts281// - it only supports comparing major and minor version, assuming Node.js will never ship
LOWbabel.config.ts301 // EXAMPLE:
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt1501 // Whether or not we are in strict parsing mode. All that changes in strict parsing mode is
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt1521 // RelationalExpression[?In, ?Yield]
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt1541 // understand when these values should be changed versus when they should be inherited.
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt1561 // 3) A token was present that no parsing function was able to consume. This type of error
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3201 // case ParsingContext.HeritageClauses:
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3221
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3341
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt3581 // However, often we'll encounter this in error situations when the identifier or keyword
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt4081 }
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt5041 // 5) AsyncArrowFunctionExpression[in,yield,await]
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt5061 // not a LeftHandSideExpression, nor does it start a ConditionalExpression. So we are done
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt5101
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt5461 // If we have an arrow, then try to parse the body. Even if not, try to parse if we
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt5581 // recursively call the function below, and parse binaryExpression as a rightOperand
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt5861 // Original Ecma:
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt5881 // CallExpression[Expression]
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt5921 // of it here to be complete.
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt5941 // PrimaryExpression
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt5961 // we always consume arguments if they are there. So we treat "new Foo()" as an
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt7141 // namespace n
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt9841 //
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt10001 // properly.
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt10021 // In this case, any element that started in the 'X' range will keep its position.
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt10041 // however, if the delta is negative, then we instead have something like this:
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt10161 // void foo() { /; }
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt10221 // When trying to find the nearest node before us.
LOWbenchmark/babel-parser/real-case-ts/ts-parser.txt10241 // in case one of the children is better.
LOWbenchmark/babel-parser/real-case/jquery-3.6.txt4461 // 1. The entire cache object
LOWbenchmark/babel-parser/real-case/jquery-3.6.txt5841 // Support: Chrome 86+
LOWbenchmark/babel-parser/real-case/jquery-3.6.txt11141 !isNaN(obj - parseFloat(obj))
LOW…l-case-preset-env-flow-ast/babel-parser-expression.txt1// @flow
LOW…l-case-preset-env-flow-ast/babel-parser-expression.txt1321 }
LOWbenchmark/babel-generator/real-case/jquery-3.6.txt4461 // 1. The entire cache object
LOWbenchmark/babel-generator/real-case/jquery-3.6.txt5841 // Support: Chrome 86+
LOWbenchmark/babel-generator/real-case/jquery-3.6.txt11141 !isNaN(obj - parseFloat(obj))
LOWscripts/parallel-tsc/tsc.ts61
LOWscripts/integration-tests/verdaccio-config.yml1#
LOWpackages/babel-traverse/src/path/conversion.ts941 //
LOWpackages/babel-parser/test/helpers/serialization.js1const { parse: JSONParse, stringify } = JSON;
LOWpackages/babel-parser/test/helpers/serialization.js61// errors are serialized *without* their corresponding class name (the result of
LOWpackages/babel-parser/src/parse-error.ts181// 2. `toMessage` functions that define additional necessary `details` needed by
LOWpackages/babel-parser/src/options.ts181 sourceType: "script",
LOWpackages/babel-parser/src/options.ts201 allowNewTargetOutsideFunction: false,
LOWpackages/babel-parser/src/options.ts221 // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678
LOWpackages/babel-parser/src/util/production-parameter.ts1// ProductionParameterHandler is a stack fashioned production parameter tracker
LOWpackages/babel-parser/src/plugins/flow/index.ts3021 }
LOWpackages/babel-parser/src/tokenizer/types.ts1// ## Token types
LOWpackages/babel-parser/src/tokenizer/types.ts161
LOWpackages/babel-parser/src/parser/expression.ts1// A recursive descent parser operates by defining functions for all
LOWpackages/babel-parser/src/parser/expression.ts181 }
LOWpackages/babel-parser/src/parser/expression.ts1381 // This helper method attempts to finish the given `node`
LOW…l-plugin-transform-regenerator/src/regenerator/emit.ts281 );
LOW…l-plugin-transform-regenerator/src/regenerator/emit.ts461
LOW…l-plugin-transform-regenerator/src/regenerator/emit.ts861
LOW…l-plugin-transform-regenerator/src/regenerator/emit.ts921 !ignoreChildResult || !tempVar,
LOW…l-plugin-transform-regenerator/src/regenerator/emit.ts1281 //
LOW…erator/src/regenerator/replaceShorthandObjectMethod.ts1import type { NodePath } from "@babel/core";
LOW…erator/src/regenerator/replaceShorthandObjectMethod.ts21// this method can be passed any Function AST node path, and it will return
16 more matches not shown…
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippet
CRITICALbenchmark/babel-parser/real-case/jquery-3.6.txt8391 jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g), function (_i, name) {
CRITICALbenchmark/babel-generator/real-case/jquery-3.6.txt8391 jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g), function (_i, name) {
CRITICAL…es/babel-standalone/test/transform-script-tags.test.js24 dom.window.document.head.children.item(2);
CRITICAL…es/babel-standalone/test/transform-script-tags.test.js47 dom.window.document.head.children.item(2);
CRITICAL…es/babel-standalone/test/transform-script-tags.test.js67 dom.window.document.head.children.item(2);
CRITICAL…es/babel-standalone/test/transform-script-tags.test.js93 dom.window.document.head.children.item(2);
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippet
MEDIUMMakefile.js36/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var xs,Os={};function As(){if(xs)re
LOW…/babel-7-8-compat/babel-7-plugins-with-babel-8-core.sh4# NOTE: This will change files in your monorepo, make sure to commit/stage
LOWpackages/babel-parser/src/tokenizer/types.ts224 // Don't forget to update packages/babel-helper-validator-identifier/src/keyword.js
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippet
HIGHpackages/babel-generator/src/printer.ts699 print(
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMMakefile.js36/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var xs,Os={};function As(){if(xs)re
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMscripts/integration-tests/e2e-react-native.sh31# Create a React Native project
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippet
LOWpackages/babel-parser/src/parser/statement.ts2857 * we need to check if we have a comma after that and
LOW…/babel-plugin-transform-react-jsx/src/create-plugin.ts242 // Current node is within a method, so we need to check if the method is a constructor.
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWscripts/integration-tests/utils/local-registry.sh16 # Set registry to local registry