coala-quickstart
coala-quickstart copied to clipboard
If I have C code I get a C *and* C++ sections
as header files are associated with both
Thanks for reporting this issue!
@coala-analyzer/coala-contributors, your aid is required, fellow coalaian. Help us triage and solving this issue!
We should group some languages (on a language basis, manually specify the associations).
@jayvdb what is this blocked by?
Not sure why was blocked. Probably grouping of languages. @satwikkansal do you have some insight on this issue. Seems like it might cause headaches for current project.
hmm, not sure why this would be troubling for current project. The discrepancy is probably due to https://gitlab.com/coala/coala-utils/blob/master/coala_utils/Extensions.py#L8 which is being used here
Ah yes, that is a problem that needs a new design.
Imo we should be trying to detect the primary language of the project. Usually .c files outnumber .h files, so the most frequent extension could be a simplistic solution which works well enough.
Related: https://github.com/coala/coala-quickstart/issues/80
Maybe we can use tools like linguist to get those stats, and then apply some if else logic