coala-quickstart icon indicating copy to clipboard operation
coala-quickstart copied to clipboard

If I have C code I get a C *and* C++ sections

Open sils opened this issue 9 years ago • 7 comments

as header files are associated with both

sils avatar Aug 15 '16 10:08 sils

Thanks for reporting this issue!

@coala-analyzer/coala-contributors, your aid is required, fellow coalaian. Help us triage and solving this issue!

gitmate-bot avatar Aug 15 '16 10:08 gitmate-bot

We should group some languages (on a language basis, manually specify the associations).

adtac avatar Aug 15 '16 10:08 adtac

@jayvdb what is this blocked by?

sils avatar Feb 01 '17 22:02 sils

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.

jayvdb avatar May 24 '18 19:05 jayvdb

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

satwikkansal avatar May 24 '18 20:05 satwikkansal

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.

jayvdb avatar Jun 18 '18 15:06 jayvdb

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

satwikkansal avatar Jun 18 '18 19:06 satwikkansal