Dear community,
Would it be possible to enrich the double indexing error message with some more information?
(“main and test files” sounds like a default, not actual indexing categories)
An example instance: “CMakeLists.txt can’t be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files”
In this case Sonar obviously knows that the file was already indexed, and most probably also checked that it would not receive the same index.
As such, instead of the above error message, I believe it would be better if sonar could include how the files was categorized previously and how it would be categorized right now.
This could help in debugging where and what I might have done incorrectly.
Also … when looking up previous logs I can find one that lists it as “indexed with no language”.
If it was not categorized to any supported language, why does sonar assume it is a main or test file?
Could the current duplication checking algorithm be changed so that if a file was previously indexed, but not as belonging to any supported language and later it would be indexed differently, it receives the last index (maybe also with a debug log so that this does not go unreported)?
Thank you in advance,
Kristof