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

.gitattributes linguist-language (language detection override) isn't taken into account #352

Open
ell1e opened this issue Oct 7, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ell1e
Copy link

ell1e commented Oct 7, 2022

Describe the bug
A .gitattributes file's linguist-language entries seem to be ignored. These are language detection overrides based on specified files or file patterns, for use e.g. when a language in the repository is often detected wrong or is unlikely to be known by any tools looking at it. This might for example be the case if it's a small, domain-specific language made just for that specific project.

To Reproduce

  1. Clone or create a repo that uses .gitattributes to override something, here is an example line you can put into .gitattributes in your repo root for testing:
    *.mylang linguist-language=MyLang
    
    Then make sure any non-empty stuff.mylang file is present.
  2. Run scc on the repository.

Expected behavior
With above steps to reproduce MyLang should show up in the listing, or whatever override is specified. At least when I tried it, this wasn't the case.

Desktop (please complete the following information):

  • OS: Fedora Linux
  • OS Version 26
  • SCC Version: 3.1.0
@boyter boyter closed this as completed Oct 10, 2022
@boyter boyter reopened this Oct 10, 2022
@boyter
Copy link
Owner

boyter commented Oct 10, 2022

Dammit wrong issue.

@boyter boyter added the enhancement New feature or request label Oct 10, 2022
@boyter boyter added this to ToDo in Release 3.2.0 Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

2 participants