Template for a good new topic, formatted with Markdown:
- ALM used GitHub
- Languages of the repository C# and HTML
- Error observed: Our LOC limit was reached, after increasing the limit above the required LOC we still get the error
Template for a good new topic, formatted with Markdown:
Hi,
Welcome to the community!
Can you provide an approximate date/timestamp for this error to help us find it in our logs?
Also are you comfortable providing your project and org key publicly?
Thx,
Ann
Hi @tweakch
We can see it in the logs that your sources/test files setup maybe misconfigured
File src/CMI.RelayProxy.Server.Service/Interfaces/ITenantProvider.cs can’t be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files
Please have look and let us know if you need more information.
Thanks
Csaba
Hi @tweakch
The scanner detects and sets “sonar.sources” and “sonar.tests” automatically.
In this case, the error is caused because the scanner indexed them once automatically, and then by setting the sonar.sources
, it’s trying to re-index them.
Short-term fix: So please remove external configuration if you plan to run them on Automatic Analysis
Please see this thread for more details
https://community.sonarsource.com/t/last-analysis-azl7uxb-z7q-973ns8s4-failed/129814/13
Thanks
Csaba