[go: up one dir, main page]

Skip to content

.gitattributes is ignored for language detection

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

Our documentation still references the Linguist Ruby gem in regard to repository language detection here (15.11) and here (17.0), however we switched to the Go Enry library here.

Go Enry does not yet support the .gitattributes file, resulting in erroneous code detection.

In this customer's case (ZD 8431,) their repository analytics shows 91% shell code, when they are expecting to see CSV or Text.

In my 16.11 test instance, .csv files are completely ignored in repository analytics.

GitLab Version

Omnibus 15.11.13

What is the current bug behavior?

.gitattributes is ignored.

What is the expected correct behavior?

.gitattributes allows language detection to be fine-tuned.

Edited by 🤖 GitLab Bot 🤖