Repository Analysis

microsoft/TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

2.5 Likely human-written View on GitHub
2.5
Adjusted Score
2.5
Raw Score
100%
Time Factor
2026-05-26
Last Push
109,008
Stars
TypeScript
Language
4,302,409
Lines of Code
50855
Files
10713
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 9HIGH 76MEDIUM 17LOW 10611

Pattern Findings

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

Over-Commented Block5829 hits · 5742 pts
SeverityFileLineSnippet
LOWtests/cases/projects/InvalidReferences/main.ts1/// <reference path="main.ts" />
LOWtests/cases/transpile/declarationSingleFileHasErrors.ts1// @target: es2015
LOW…es/transpile/declarationSingleFileHasErrorsReported.ts1// @target: es2015
LOW…ases/transpile/declarationSelfReferentialConstraint.ts1// @target: es2015
LOWtests/cases/fourslash/extract-method11.ts1/// <reference path='fourslash.ts' />
LOW…ourslash/completionsOverridingMethodDefaultExported.ts1/// <reference path="fourslash.ts" />
LOW…ses/fourslash/findAllRefsForObjectLiteralProperties.ts1/// <reference path='fourslash.ts'/>
LOWtests/cases/fourslash/navigationBarFunctionPrototype.ts1/// <reference path="fourslash.ts"/>
LOWtests/cases/fourslash/completionsImport_keywords.ts1/// <reference path="fourslash.ts" />
LOW…odeFixInferFromFunctionThisUsageJsDocNewDocsLiteral.ts1/// <reference path='fourslash.ts' />
LOWtests/cases/fourslash/renameJsSpecialAssignmentRhs1.ts1/// <reference path="fourslash.ts"/>
LOWtests/cases/fourslash/spaceAfterStatementConditions.ts1/// <reference path="fourslash.ts"/>
LOW…ts/cases/fourslash/referencesForInheritedProperties.ts1/// <reference path='fourslash.ts'/>
LOWtests/cases/fourslash/codeFixSpellingAddSpaces4.ts1/// <reference path='fourslash.ts' />
LOWtests/cases/fourslash/completionsPaths_importType.ts1/// <reference path="fourslash.ts" />
LOW…ortCompletionsPackageJsonImportsPattern_capsInPath1.ts1/// <reference path="fourslash.ts" />
LOW…fourslash/completionsForRecursiveGenericTypesMember.ts1/// <reference path="fourslash.ts" />
LOW…cases/fourslash/quickInfoCommentsFunctionExpression.ts1/// <reference path='fourslash.ts' />
LOW…cases/fourslash/quickInfoCommentsFunctionExpression.ts21/////**
LOWtests/cases/fourslash/renameJsExports03.ts1/// <reference path='fourslash.ts'/>
LOWtests/cases/fourslash/jsSpecialAssignmentMerging.ts1/// <reference path="fourslash.ts" />
LOWtests/cases/fourslash/addVarToConstructor1.ts1/// <reference path="fourslash.ts" />
LOW…/cases/fourslash/codeFixDisableJsDiagnosticsInFile9.ts1/// <reference path='fourslash.ts' />
LOWtests/cases/fourslash/jsDocFunctionSignatures6.ts1///<reference path="fourslash.ts" />
LOWtests/cases/fourslash/getJavaScriptCompletions12.ts1///<reference path="fourslash.ts" />
LOW…ompletionForStringLiteralRelativeImportAllowJSFalse.ts1/// <reference path='fourslash.ts' />
LOW…ompletionForStringLiteralRelativeImportAllowJSFalse.ts21//// var foo18 = require("..//*require3*/
LOWtests/cases/fourslash/autoImportTypeOnlyPreferred1.ts1/// <reference path="fourslash.ts" />
LOWtests/cases/fourslash/gotoDefinitionSatisfiesTag.ts1///<reference path="fourslash.ts" />
LOWtests/cases/fourslash/underscoreTypings01.ts1/// <reference path='fourslash.ts'/>
LOW…es/fourslash/codeFixClassExtendAbstractGetterSetter.ts1/// <reference path='fourslash.ts' />
LOW…es/fourslash/genericTypeWithMultipleBases1MultiFile.ts1/// <reference path='fourslash.ts'/>
LOWtests/cases/fourslash/quickInfoLink5.ts1/// <reference path="fourslash.ts" />
LOWtests/cases/fourslash/completionListInImportClause06.ts1/// <reference path='fourslash.ts' />
LOWtests/cases/fourslash/outliningHintSpansForFunction.ts1/// <reference path="fourslash.ts"/>
LOWtests/cases/fourslash/tsxCompletion8.ts1/// <reference path='fourslash.ts' />
LOWtests/cases/fourslash/jsDocTypeTagQuickInfo1.ts1/// <reference path="fourslash.ts" />
LOWtests/cases/fourslash/jsDocTypeTagQuickInfo1.ts21//// /** @type {Null} */
LOWtests/cases/fourslash/completionsOverridingMethod9.ts1/// <reference path="fourslash.ts" />
LOW…rslash/completionListInTypeLiteralInTypeParameter19.ts1/// <reference path="fourslash.ts" />
LOWtests/cases/fourslash/getJavaScriptQuickInfo8.ts1/// <reference path="fourslash.ts" />
LOW…cases/fourslash/breakpointValidationTryCatchFinally.ts1/// <reference path='fourslash.ts' />
LOW…cases/fourslash/breakpointValidationTryCatchFinally.ts21//// x = x - 1;
LOWtests/cases/fourslash/syntacticClassifications1.ts1/// <reference path="fourslash.ts"/>
LOWtests/cases/fourslash/referencesForGlobals4.ts1/// <reference path='fourslash.ts'/>
LOWtests/cases/fourslash/renameForDefaultExport07.ts1/// <reference path='fourslash.ts'/>
LOWtests/cases/fourslash/renameImportOfReExport.ts1/// <reference path='fourslash.ts' />
LOWtests/cases/fourslash/findAllRefsModuleAugmentation.ts1/// <reference path='fourslash.ts' />
LOWtests/cases/fourslash/smartSelection_JSDocTags1.ts1/// <reference path="fourslash.ts" />
LOWtests/cases/fourslash/formattingIfInElseBlock.ts1/// <reference path='fourslash.ts' />
LOW…sts/cases/fourslash/codeFixConvertToTypeOnlyExport3.ts1/// <reference path="fourslash.ts" />
LOWtests/cases/fourslash/formatSelectionWithTrivia.ts1/// <reference path="fourslash.ts" />
LOW…urslash/moveToNewFile_aliasDefaultExportNamedImport.ts1/// <reference path='fourslash.ts' />
LOWtests/cases/fourslash/findAllRefs_importType_js.3.ts1/// <reference path='fourslash.ts' />
LOWtests/cases/fourslash/inlayHintsThisParameter.ts1/// <reference path="fourslash.ts" />
LOW…IntrinsicDeclaredUsingTemplateLiteralTypeSignatures.ts1/// <reference path="fourslash.ts" />
LOW…h/renameDestructuringAssignmentNestedInArrayLiteral.ts1/// <reference path='fourslash.ts' />
LOW…ts/cases/fourslash/goToDefinitionVariableAssignment.ts1/// <reference path="fourslash.ts" />
LOW…ourslash/pathCompletionsPackageJsonExportsWildcard8.ts1/// <reference path="fourslash.ts" />
LOW…etionListAtIdentifierDefinitionLocations_properties.ts1/// <reference path='fourslash.ts' />
5769 more matches not shown…
Hyper-Verbose Identifiers4749 hits · 4260 pts
SeverityFileLineSnippet
LOWtests/cases/fourslash/fourslash.ts892declare function verifyOperationIsCancelled(f: any): void;
LOWtests/cases/fourslash/fourslash.ts944 export function globalsInJsInsideFunction(plus: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry>, options?:
LOWtests/cases/fourslash/fourslash.ts960 export function functionMembersWithPrototypePlus(plus: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry>): R
LOW…cases/fourslash/jsdocParameterTagSnippetCompletion1.ts119//// function reallylongfunctionnameabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdef
LOW…lash/navigationBarItemsInsideMethodsAndConstructors.ts5//// function LocalFunctionInConstructor() {}
LOW…lash/navigationBarItemsInsideMethodsAndConstructors.ts12//// function LocalFunctionInLocalFunctionInMethod() {}
LOWtests/cases/fourslash/indentationNone.ts178////function unterminatedListIndentation(a,
LOW…ourslash/smartIndentOnUnclosedFunctionDeclaration01.ts6function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
LOW…ourslash/smartIndentOnUnclosedFunctionDeclaration04.ts6function verifyIndentationAfterNewLine(marker: string, indentation: number, positionWorkaround: number, expectedText: st
LOWtests/cases/fourslash/callHierarchyCrossFile.ts14////function registerDefaultLanguageCommand() {
LOWtests/cases/fourslash/smartIndentDoStatement.ts8function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
LOWtests/cases/fourslash/smartIndentIfStatement.ts10function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
LOW…s/cases/fourslash/smartIndentObjectBindingPattern01.ts5function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
LOW…ts/cases/fourslash/smartIndentArrayBindingPattern01.ts5function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
LOWtests/cases/fourslash/indentation.ts178////function unterminatedListIndentation(a,
LOWtests/cases/fourslash/indentationWithBaseIndent.ts205//// function unterminatedListIndentation(a,
LOW…es/fourslash/extract-method_jsxPreceedingWhitespace.ts7////export default function ComponentThatExhibitsIssue() {
LOW…es/fourslash/extract-method_jsxPreceedingWhitespace.ts23`export default function ComponentThatExhibitsIssue() {
LOW…ts/cases/fourslash/smartIndentArrayBindingPattern02.ts5function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
LOW…es/fourslash/smartIndentInParenthesizedExpression01.ts5function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
LOW…s/cases/fourslash/smartIndentObjectBindingPattern02.ts5function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
LOW…sh/goToImplementationShorthandPropertyAssignment_01.ts34//// function createBarUsingClassDeclaration(): Bar {
LOW…ts/cases/fourslash/completionListFunctionExpression.ts5////class DataHandler {
LOWtests/cases/fourslash/indentationBlock.ts178////function unterminatedListIndentation(a,
LOW…ourslash/smartIndentOnUnclosedFunctionDeclaration03.ts6function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
LOW…ourslash/smartIndentOnUnclosedFunctionDeclaration02.ts6function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
LOW…ourslash/smartIndentObjectLiteralOpenBracketNewLine.ts11function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
LOW…sh/goToImplementationShorthandPropertyAssignment_00.ts31//// function createBarUsingClassDeclaration(): Bar {
LOW…lash/server/autoImportFileExcludePatterns_symlinks2.ts20//// export declare function ServerRuntimeMetaFunction(): void;
LOW…slash/server/autoImportFileExcludePatterns_symlinks.ts14//// export declare function ServerRuntimeMetaFunction(): void;
LOWtests/cases/compiler/APISample_jsdoc.ts28function parseCommentsIntoDefinition(this: any,
LOWtests/cases/compiler/declFileFunctions.ts35export function fooWithTypePredicateAndMulitpleParams(a: any, b: any, c: any): a is number {
LOWtests/cases/compiler/declFileFunctions.ts41export function fooWithTypeTypePredicateAndRestParam(a: any, ...rest): a is number {
LOWtests/cases/compiler/declFileFunctions.ts49function nonExportedFooWithParameters(/** this is comment about a*/a: string,
LOWtests/cases/compiler/declFileFunctions.ts54function nonExportedFooWithRestParameters(a: string, ...rests: string[]) {
LOWtests/cases/compiler/declFileFunctions.ts58function nonExportedFooWithOverloads(a: string): string;
LOWtests/cases/compiler/declFileFunctions.ts59function nonExportedFooWithOverloads(a: number): number;
LOWtests/cases/compiler/declFileFunctions.ts60function nonExportedFooWithOverloads(a: any): any {
LOWtests/cases/compiler/declFileFunctions.ts74function globalfooWithRestParameters(a: string, ...rests: string[]) {
LOWtests/cases/compiler/inferTypePredicates.ts148function irrelevantIsNumberDestructuring(x: string | number) {
LOWtests/cases/compiler/inferTypePredicates.ts212function doNotRefineDestructuredParam({x, y}: {x: number | null, y: number}) {
LOWtests/cases/compiler/moduleVisibilityTest2.ts9 export function someExportedOuterInnerFunc() { return "foo"; }
LOWtests/cases/compiler/nonNullFullInference.ts20function testNonNullInferenceWithArrays(numbers: number[]) {
LOW…iler/privacyFunctionCannotNameParameterTypeDeclFile.ts107export function publicFunctionWithPrivateParmeterTypes(param = exporter.createExportedWidget1()) { // Error
LOW…iler/privacyFunctionCannotNameParameterTypeDeclFile.ts109function privateFunctionWithPrivateParmeterTypes(param = exporter.createExportedWidget1()) {
LOW…iler/privacyFunctionCannotNameParameterTypeDeclFile.ts133export function publicFunctionWithPrivateModuleParameterTypes(param= exporter.createExportedWidget2()) { // Error
LOW…iler/privacyFunctionCannotNameParameterTypeDeclFile.ts155function privateFunctionWithPrivateModuleParameterTypes(param= exporter.createExportedWidget2()) {
LOW…r/defaultParameterAddsUndefinedWithStrictNullChecks.ts47function removeUndefinedButNotFalse(x = true) {
LOWtests/cases/compiler/inKeywordTypeguard.ts26function positiveTestClassesWithOptionalProperties(x: AWithOptionalProp | BWithOptionalProp) {
LOWtests/cases/compiler/inKeywordTypeguard.ts42function negativeTestClassesWithMembers(x: AWithMethod | BWithMethod) {
LOWtests/cases/compiler/inKeywordTypeguard.ts50function negativeTestClassesWithMemberMissingInBothClasses(x: AWithMethod | BWithMethod) {
LOWtests/cases/compiler/inKeywordTypeguard.ts63function negativeMultipleClassesTest(x: A | B | C | D) {
LOW…piler/isolatedDeclarationErrorsFunctionDeclarations.ts13export function noParamAnnotationBadDefault(p = 1 + 1, p2 = { a: 1 + 1 }, p3 = [1 + 1] as const): void {}
LOW…cases/compiler/declarationEmitBindingPatternsUnused.ts35function referencedInSignartureKeyword({ function: alias }: { function: string }): typeof alias {
LOW…cases/compiler/declarationEmitBindingPatternsUnused.ts44function referencedInNestedFunction({ name: alias }: Named) {
LOW…s/cases/compiler/declarationEmitCastReusesTypeNode1.ts14export function fnWithRequiredDefaultParam(p = null! as P, req: number) {}
LOW…s/cases/compiler/declarationEmitCastReusesTypeNode1.ts32export function fnWithPartialAnnotationOnDefaultparam(x: P = null! as P, b: number) {}
LOWtests/cases/compiler/narrowingUnionToUnion.ts210function assertRelationIsNullOrStringArray(v: (string | number)[] | null): asserts v is string[] | null {}
LOW…ompiler/privacyFunctionCannotNameReturnTypeDeclFile.ts111export function publicFunctionWithPrivateParmeterTypes() { // Error
LOW…ompiler/privacyFunctionCannotNameReturnTypeDeclFile.ts114function privateFunctionWithPrivateParmeterTypes() {
4689 more matches not shown…
Cross-Language Confusion (JS/TS)76 hits · 380 pts
SeverityFileLineSnippet
HIGH…ompiler/declarationEmitEnumReferenceViaImportEquals.ts26 print() {
HIGH…ts/cases/compiler/reachabilityCheckWithEmptyDefault.ts8 print('1');
HIGH…sts/cases/conformance/classes/mixinClassesAnnotated.ts17 print(): void;
HIGH…sts/cases/conformance/classes/mixinClassesAnnotated.ts23 print() {
HIGH…sts/cases/conformance/classes/mixinClassesAnonymous.ts16 print() {
HIGH…onformance/dynamicImport/importCallExpressionInCJS3.ts5 print() { return "I am B"}
HIGH…ormance/dynamicImport/importCallExpressionInSystem2.ts5 print() { return "I am B"}
HIGH…nformance/dynamicImport/importCallExpression3ES2020.ts5 print() { return "I am B"}
HIGH…nformance/dynamicImport/importCallExpression2ES2020.ts5 print() { return "I am B"}
HIGH…ormance/dynamicImport/importCallExpressionInSystem3.ts5 print() { return "I am B"}
HIGH…onformance/dynamicImport/importCallExpressionInUMD4.ts6 print() { return "I am B"}
HIGH…onformance/dynamicImport/importCallExpressionInAMD2.ts5 print() { return "I am B"}
HIGH…nformance/dynamicImport/importCallExpression4ES2020.ts6 print() { return "I am B"}
HIGH…nformance/dynamicImport/importCallExpression5ES2020.ts6 print() { return "I am B"}
HIGH…onformance/dynamicImport/importCallExpressionInAMD3.ts5 print() { return "I am B"}
HIGH…micImport/importCallExpressionNoModuleKindSpecified.ts6 print() { return "I am B"}
HIGH…onformance/dynamicImport/importCallExpressionInAMD4.ts7 print() { return "I am B"}
HIGH…ormance/dynamicImport/importCallExpressionInSystem4.ts7 print() { return "I am B"}
HIGH…onformance/dynamicImport/importCallExpressionInCJS5.ts7 print() { return "I am B"}
HIGH…onformance/dynamicImport/importCallExpressionInUMD3.ts5 print() { return "I am B"}
HIGH…nformance/dynamicImport/importCallExpression6ES2020.ts5 print() { return "I am B"}
HIGH…onformance/dynamicImport/importCallExpressionInCJS4.ts5 print() { return "I am B"}
HIGH…onformance/dynamicImport/importCallExpressionInUMD2.ts5 print() { return "I am B"}
HIGHtests/baselines/reference/importCallExpressionInAMD4.js5 print() { return "I am B"}
HIGHtests/baselines/reference/importCallExpressionInAMD4.js50 print() { return "I am B"; }
HIGHtests/baselines/reference/mixinClassesAnonymous.js18 print() {
HIGHtests/baselines/reference/mixinClassesAnonymous.js85 print() {
HIGHtests/baselines/reference/importCallExpressionInCJS4.js5 print() { return "I am B"}
HIGHtests/baselines/reference/importCallExpressionInCJS4.js21 print() { return "I am B"; }
HIGHtests/baselines/reference/importCallExpressionInUMD2.js5 print() { return "I am B"}
HIGHtests/baselines/reference/importCallExpressionInUMD2.js33 print() { return "I am B"; }
HIGH…s/baselines/reference/importCallExpressionInSystem4.js5 print() { return "I am B"}
HIGH…s/baselines/reference/importCallExpressionInSystem4.js54 print() { return "I am B"; }
HIGHtests/baselines/reference/importCallExpressionInCJS5.js5 print() { return "I am B"}
HIGHtests/baselines/reference/importCallExpressionInCJS5.js49 print() { return "I am B"; }
HIGHtests/baselines/reference/importCallExpressionInUMD3.js5 print() { return "I am B"}
HIGHtests/baselines/reference/importCallExpressionInUMD3.js30 print() { return "I am B"; }
HIGH…sts/baselines/reference/importCallExpression6ES2020.js5 print() { return "I am B"}
HIGH…sts/baselines/reference/importCallExpression6ES2020.js24 print() { return "I am B"; }
HIGHtests/baselines/reference/parserRealSource11.js2479 print(context) {
HIGH…s/baselines/reference/importCallExpressionInSystem3.js5 print() { return "I am B"}
HIGH…s/baselines/reference/importCallExpressionInSystem3.js25 print() { return "I am B"; }
HIGHtests/baselines/reference/importCallExpressionInUMD4.js5 print() { return "I am B"}
HIGHtests/baselines/reference/importCallExpressionInUMD4.js58 print() { return "I am B"; }
HIGHtests/baselines/reference/importCallExpressionInCJS3.js5 print() { return "I am B"}
HIGHtests/baselines/reference/importCallExpressionInCJS3.js24 print() { return "I am B"; }
HIGH…s/baselines/reference/importCallExpressionInSystem2.js5 print() { return "I am B"}
HIGH…s/baselines/reference/importCallExpressionInSystem2.js28 print() { return "I am B"; }
HIGH…sts/baselines/reference/importCallExpression2ES2020.js5 print() { return "I am B"}
HIGH…sts/baselines/reference/importCallExpression2ES2020.js21 print() { return "I am B"; }
HIGH…sts/baselines/reference/importCallExpression3ES2020.js5 print() { return "I am B"}
HIGH…sts/baselines/reference/importCallExpression3ES2020.js19 print() { return "I am B"; }
HIGHtests/baselines/reference/parserRealSource10.js798 print(line, outfile) {
HIGH…sts/baselines/reference/importCallExpression5ES2020.js5 print() { return "I am B"}
HIGH…sts/baselines/reference/importCallExpression5ES2020.js24 print() { return "I am B"; }
HIGH…sts/baselines/reference/importCallExpression4ES2020.js5 print() { return "I am B"}
HIGH…sts/baselines/reference/importCallExpression4ES2020.js32 print() { return "I am B"; }
HIGHtests/baselines/reference/importCallExpressionInAMD3.js5 print() { return "I am B"}
HIGHtests/baselines/reference/importCallExpressionInAMD3.js22 print() { return "I am B"; }
HIGH…reference/importCallExpressionNoModuleKindSpecified.js5 print() { return "I am B"}
16 more matches not shown…
Hallucination Indicators9 hits · 105 pts
SeverityFileLineSnippet
CRITICAL…es/conformance/parser/ecmascript5/parserRealSource7.ts552 if (!context.scopeChain.classType.members.publicMembers.add(varDecl.id.text, fieldSymbol)) {
CRITICAL…nce/deeplyNestedAssignabilityErrorsCombined.errors.txt2 The types of 'a.b.c.d.e.f().g' are incompatible between these types.
CRITICAL…nce/deeplyNestedAssignabilityErrorsCombined.errors.txt5 The types of '(new a.b.c.d.e.f()).g' are incompatible between these types.
CRITICAL…nce/deeplyNestedAssignabilityErrorsCombined.errors.txt15!!! error TS2322: The types of 'a.b.c.d.e.f().g' are incompatible between these types.
CRITICAL…nce/deeplyNestedAssignabilityErrorsCombined.errors.txt31!!! error TS2322: The types of '(new a.b.c.d.e.f()).g' are incompatible between these types.
CRITICALtests/baselines/reference/parserRealSource7.js554 if (!context.scopeChain.classType.members.publicMembers.add(varDecl.id.text, fieldSymbol)) {
CRITICALtests/baselines/reference/parserRealSource7.js1274 if (!context.scopeChain.classType.members.publicMembers.add(varDecl.id.text, fieldSymbol)) {
CRITICALtests/baselines/reference/parserRealSource7.errors.txt1318 if (!context.scopeChain.classType.members.publicMembers.add(varDecl.id.text, fieldSymbol)) {
CRITICALsrc/services/callHierarchy.ts266 return node.parent.parent.parent.parent.parent.name.getText();
AI Slop Vocabulary12 hits · 33 pts
SeverityFileLineSnippet
MEDIUM…tExportAssignedNamespaceNoTripleSlashTypesReference.ts33// This issue (#35343) _only_ reproduces in the test harness when the file in question is in a subfolder
MEDIUM…es/members/privateNames/privateNamesAndStaticFields.ts23// We will need a more robust solution when we support static fields
MEDIUM…conformance/controlFlow/exhaustiveSwitchStatements1.ts25 z; // Definitely assigned
MEDIUM…sts/baselines/reference/exhaustiveSwitchStatements1.js23 z; // Definitely assigned
MEDIUM…sts/baselines/reference/exhaustiveSwitchStatements1.js278 z; // Definitely assigned
MEDIUM…sts/baselines/reference/privateNamesAndStaticFields.js23// We will need a more robust solution when we support static fields
MEDIUM…sts/baselines/reference/privateNamesAndStaticFields.js60// We will need a more robust solution when we support static fields
MEDIUM…tExportAssignedNamespaceNoTripleSlashTypesReference.js32// This issue (#35343) _only_ reproduces in the test harness when the file in question is in a subfolder
MEDIUM…tExportAssignedNamespaceNoTripleSlashTypesReference.js53// This issue (#35343) _only_ reproduces in the test harness when the file in question is in a subfolder
MEDIUMsrc/compiler/performance.ts186 // to be able to leverage native trace events when node is run with either `--cpu-prof`
MEDIUMsrc/compiler/parser.ts5247 // Definitely not a parenthesized arrow function.
MEDIUMsrc/compiler/transformers/esDecorators.ts993 // We use `var` instead of `let` so we can leverage NamedEvaluation to define the class name
Overly Generic Function Names26 hits · 26 pts
SeverityFileLineSnippet
LOW…ArrowFunctionOrFunctionExpression_ToAnon_FnArgument.ts3//// function doSomething(a){}
LOW…ArrowFunctionOrFunctionExpression_ToAnon_FnArgument.ts11 newContent: `function doSomething(a){}
LOWtests/cases/compiler/differentTypesWithSameName.ts6 export function doSomething(v: m.variable) {
LOWtests/cases/compiler/implicitConstParameters.ts4function doSomething(cb: () => void) {
LOW…es/compiler/readonlyPropertySubtypeRelationDirected.ts9function doSomething(condition: boolean) {
LOW…es/compiler/readonlyPropertySubtypeRelationDirected.ts28function doSomething(condition: boolean) {
LOW…es/compiler/readonlyPropertySubtypeRelationDirected.ts48function doSomething(condition: boolean) {
LOW…es/compiler/readonlyPropertySubtypeRelationDirected.ts68function doSomething(condition: boolean) {
LOW…compiler/functionExpressionAndLambdaMatchesFunction.ts5 function doSomething(a: Function) {
LOWtests/cases/compiler/weakType.ts14function doSomething(settings: Settings) { /* ... */ }
LOW…eference/functionExpressionAndLambdaMatchesFunction.js6 function doSomething(a: Function) {
LOW…eference/functionExpressionAndLambdaMatchesFunction.js18 function doSomething(a) {
LOWtests/baselines/reference/weakType.js16function doSomething(settings: Settings) { /* ... */ }
LOWtests/baselines/reference/weakType.js74function doSomething(settings) { }
LOWtests/baselines/reference/implicitConstParameters.js4function doSomething(cb: () => void) {
LOWtests/baselines/reference/implicitConstParameters.js62function doSomething(cb) {
LOW…s/reference/readonlyPropertySubtypeRelationDirected.js9function doSomething(condition: boolean) {
LOW…s/reference/readonlyPropertySubtypeRelationDirected.js28function doSomething(condition: boolean) {
LOW…s/reference/readonlyPropertySubtypeRelationDirected.js48function doSomething(condition: boolean) {
LOW…s/reference/readonlyPropertySubtypeRelationDirected.js68function doSomething(condition: boolean) {
LOW…s/reference/readonlyPropertySubtypeRelationDirected.js86function doSomething(condition) {
LOW…s/reference/readonlyPropertySubtypeRelationDirected.js101function doSomething(condition) {
LOW…s/reference/readonlyPropertySubtypeRelationDirected.js116function doSomething(condition) {
LOW…s/reference/readonlyPropertySubtypeRelationDirected.js131function doSomething(condition) {
LOWtests/baselines/reference/differentTypesWithSameName.js8 export function doSomething(v: m.variable) {
LOWtests/baselines/reference/differentTypesWithSameName.js28 function doSomething(v) {
Decorative Section Separators5 hits · 22 pts
SeverityFileLineSnippet
MEDIUM.github/workflows/codeql.yml13 # ┌───────────── minute (0 - 59)
MEDIUM.github/workflows/codeql.yml14 # │ ┌───────────── hour (0 - 23)
MEDIUM.github/workflows/codeql.yml15 # │ │ ┌───────────── day of the month (1 - 31)
MEDIUM.github/workflows/codeql.yml16 # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
MEDIUM.github/workflows/codeql.yml17 # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
Fake / Example Data5 hits · 5 pts
SeverityFileLineSnippet
LOW…hIncreased/amd/nodeModulesMaxDepthIncreased.errors.txt22 "name": "John Doe",
LOW…Increased/node/nodeModulesMaxDepthIncreased.errors.txt19 "name": "John Doe",
LOW…lesImportHigher/amd/nodeModulesImportHigher.errors.txt45 "name": "John Doe",
LOW…esImportHigher/node/nodeModulesImportHigher.errors.txt42 "name": "John Doe",
LOWsrc/testRunner/unittests/services/colorization.ts146 testLexicalClassification("LOREM IPSUM DOLOR ", ts.EndOfLineState.InMultiLineCommentTrivia, comment("LOREM
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippet
LOWsrc/compiler/symbolWalker.ts205 // So to get the intervening symbols, we need to check if there's a type
LOWsrc/services/refactors/convertImport.ts227 // We need to check if the preferred namespace name (`preferredName`) we'd like to use in the refactored code wi