Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Remove TypeScript code paths doing language detection based on filename alone #56377

@varungandhi-src

Description

@varungandhi-src

Flawed APIs:

A filename is not sufficient to determine the language. Corresponding go-enry code:

https://sourcegraph.com/github.com/go-enry/go-enry@40f2a1e5b90eec55c20441c2a5911dcfc298a447/-/blob/data/extension.go

The map contains one extension -> a list of languages, not a single language.

The most common example of this in practice is probably .h which is used for both C and C++ headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    team/graphGraph Team (previously Code Intel/Language Tools/Language Platform)tech-debtTechnical Debt

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions