Hi @Alexandre_Holzhey
I’ve been using SonarCloud and didn’t take time to check back on this question. Let me just say that I love the product, very fast on feedback on the team’s PR, and overall good comments/feedback on the code.
The organization is medly, from https://sonarcloud.io/organizations/medly/
It looks like 2 of the 3 projects now have completed a scan, so only 1 is not scanning. I have no clue why that is since I haven’t changed anything in the configuration.
The failing project is https://sonarcloud.io/project/overview?id=medlypharmacy_drug-reference-service
I also now see an error message on the top which wasn’t there before on that page that says “Your analysis with ID “AXzNdGR3waYcueXoDM5W” has failed: your number of lines exceeds your organization plan”
I checked the background tasks and this is what it looks like.
The error says “This analysis will make your organization ‘medly’ to reach the maximum allowed lines limit (having 903503 lines).
Please contact the administrator of the organization to resolve this issue.”
I know that the project has way less than 10000 lines of code, so I’m wondering if node_modules are being dragged along in the main branch analysis?
I’m not sure what you mean when you ask “How do you analyze these projects?” I’ve set them up using the UI. I just became aware that we can have a file in the project to configure the scanning called sonar-project.properties
(As a side note, the word properties above is from a misspelling on SonarScanner | SonarQube Docs , in the Configuring your project section.)
The projects are Typescript and Javascript based.
I also just noticed that there’s an administration option available for me on this project. I had asked our admin to give me project permission and I think that took a little bit of time to appear. I’ll dive into this section, but I figure I would add exclusions like node_modules or other items which are not our code base.
A question back to you about the size of code. I ran two projects, the one that’s still broken and the one that fixed itself in a code size tool. They are both about the same size. Does that mean that potentially, the one that now works has consumed my organization’s line of code count?
Is there generally documentation that explains what is a line of code for the purpose of analysis?
I’ll try to configure the application best I can, but still not sure about a lot of these items.