Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Detect language by filename #518

Closed
ianlewis opened this issue Sep 2, 2023 · 1 comment · Fixed by #689 or #1500
Closed

[feature] Detect language by filename #518

ianlewis opened this issue Sep 2, 2023 · 1 comment · Fixed by #689 or #1500
Assignees
Labels
enhancement New feature or request performance An issue with performance

Comments

@ianlewis
Copy link
Owner

ianlewis commented Sep 2, 2023

Currently linguist only supports detecting a single language by filename even though sometimes there could be multiple matches.

Use linguist to detect the language by file name and if there is only one match use that. Otherwise determine the language based on the contents.

Related #513
Related dayvonjersen/linguist#11

@ianlewis ianlewis added enhancement New feature or request performance An issue with performance labels Sep 2, 2023
@ianlewis ianlewis self-assigned this Sep 2, 2023
@ianlewis ianlewis linked a pull request Sep 19, 2023 that will close this issue
6 tasks
@github-actions github-actions bot reopened this Feb 2, 2024
Copy link

github-actions bot commented Feb 2, 2024

There are TODOs referencing this issue:

  1. internal/scanner/scanner.go:140: Use linguist to detect by file name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance An issue with performance
Projects
None yet
1 participant