Python project setup being misclassified as HaProxy when it should be INI #6489
-
all hail the template Problem descriptionI'm seeing not just my own, but big-name Python projects that include a As a result, changing the URL of the affected repository:The expansive search provides a better indicator since it flags languages per-file, which is the issue here. If anyone happens to know a repository providing only or mostly example Python setups, or one that includes the files and has them mistagged on the stats, please comment a link and I'll edit it in. Expected language:INI Detected language:HaProxy |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Almost all of these are going to be because of the There are a few things that can be done to improve this:
I'm loath to add If you've go the time, feel free to submit a PR for the above. |
Beta Was this translation helpful? Give feedback.
Almost all of these are going to be because of the
.cfg
extension matching both HAProxy and INI and Linguist falling through to the classifier as there isn't a heuristic for the.cfg
extension. The classifier is trained on the samples provided in Linguist and in the case of the.cfg
extension, there are 4 samples for HAProxy and only tiny, and pretty poor 5 year old sample for INI.There are a few things that can be done to improve this:
.cfg
files to differentiate between HAProxy and INI.cfg
samples to better train the classifierI'm loath to add
setup.cfg
as a filename for INI as it's a very generic filename so will resul…