# Developer Edition: Failed analysis due to lines of code limit

**URL:** <https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483>\
**Category:** SonarQube Server / Community Build\
**Created:** [January 30, 2020, 10:36pm UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483 "2020-01-30T22:36:52Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ealdana0](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ealdana0/32/9164_2.png) [@ealdana0](https://community.sonarsource.com/u/ealdana0)\
**Post date:** [January 30, 2020, 10:36pm UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483/1 "2020-01-30T22:36:52Z")

</div>

- SonarQube Version: Developer Edition Version 8.0 (build 29455)
- What are you trying to achieve: Analyze master branch
- What have you tried so far to achieve this: Check license page, sent email to contact email

Hi Support,  
We are experiencing an issue with our SonarQube analysis. We purchased a Developer License.  
We have a single project and two branches defined for analysis: Develop and Master.

Develop branch passes analysis but we get the following error in master:

 ![2](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/0/0482487f907c0fd08ec4943786c12e182fa45f9b.png)

Our master branch has less lines of code than develop, can you please let me know what could be wrong.

Thank you

---

<div class="post-metadata">

**Author:** ![ealdana0](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ealdana0/32/9164_2.png) [@ealdana0](https://community.sonarsource.com/u/ealdana0)\
**Post date:** [January 31, 2020, 3:42pm UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483/2 "2020-01-31T15:42:22Z")

</div>

any ideas?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [February 3, 2020, 3:36pm UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483/3 "2020-02-03T15:36:54Z")

</div>

Hi,

Welcome to the community!

So you know, this is a community of interest for people interested in SonarSource products. It is not “staffed”, and people answer (or not) as time and interest allow. 🙂

The largest branch of each project is counted for licensing purposes. It sounds like your new master analysis adds a lot of LOC…?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![ealdana0](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ealdana0/32/9164_2.png) [@ealdana0](https://community.sonarsource.com/u/ealdana0)\
**Post date:** [February 3, 2020, 3:54pm UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483/4 "2020-02-03T15:54:12Z")

</div>

Hi Ann, I appreciate your reply!  
Do you know if deleting the project in SonarQube will reset the total LOC count?

By doing this hopefully we can determine then analyze the largest branch first. Then the other branch can still be analyzed.

Thanks,  
Edreih

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [February 3, 2020, 4:35pm UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483/5 "2020-02-03T16:35:25Z")

</div>

Hi Edreih,

> [@ealdana0](#):
>
> Do you know if deleting the project in SonarQube will reset the total LOC count?

Yes.

> [@ealdana0](#):
>
> By doing this hopefully we can determine then analyze the largest branch first. Then the other branch can still be analyzed.

Actually, this part is a bit odd. If the two branches are _really_ part of the same project then only one should impact the line count. From what you’ve described, it sounds like the new analysis adds a lot of LOC to the master branch, so you’ll be right back in the same position.

Just to be sure, how about a screenshot of your Projects Management page (Administration-\>Projects-\>Management) to double-check/verify the total project count? E.G.

 ![Selection_852](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/a/af104fa0bb1f981ea6e9ff746cbefcdefe25e864.jpeg)

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![ealdana0](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ealdana0/32/9164_2.png) [@ealdana0](https://community.sonarsource.com/u/ealdana0)\
**Post date:** [February 3, 2020, 4:56pm UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483/6 "2020-02-03T16:56:33Z")

</div>

Right. The two branches are part of the same project.

- The develop branch is at 1.6M lines of code and was last analyzed on December 20.
- The master branch has not been analyzed.

Here is a screenshot of the Projects management page.

 ![4](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/5/5f97f213f69b2451f56033040bb7c47bf550bbd7.png)

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [February 3, 2020, 7:15pm UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483/7 "2020-02-03T19:15:18Z")

</div>

Hi,

Thanks for the screenshot. It confirms what you said - just one project in the instance. (Sorry, but sometimes you have to back up to the “dumb” questions. ☹)

So now I’m back to: a lot of lines have been added in master. That, or… do you have exclusions set up in the develop branch that aren’t set up/applied on master? Unfortunately there are multiple places to look:

- Project-level Administration-\>General Settings-\>Analysis Scope
- In your sonar-project.properties / pom.xml
- On the analysis command line

(Note that I don’t recommend either of the last two, but people do it.)

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![ealdana0](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ealdana0/32/9164_2.png) [@ealdana0](https://community.sonarsource.com/u/ealdana0)\
**Post date:** [February 3, 2020, 8:40pm UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483/8 "2020-02-03T20:40:14Z")

</div>

Ann, thank you. We do not use the last two places to set exclusions.  
We use:

- Administration tab \> Analysis Scope
- Project \> Administration \> General Settings \> Analysis Scope

What is the difference between these two?

I set some additional exclusions on the project-level and now our master branch was analyzed (1.3M LOC). I’m not entirely sure if that was the sole cause of the analysis going through. Nevertheless, thanks for your help.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [February 3, 2020, 8:53pm UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483/9 "2020-02-03T20:53:28Z")

</div>

Hi,

I’m glad you got this working!

> [@ealdana0](#):
>
> - Administration tab \> Analysis Scope
> - Project \> Administration \> General Settings \> Analysis Scope

The first one sets global defaults for all projects. Unless overridden, these will apply everywhere.  
The second one sets/overrides at a project level. Values set here can be overridden in those other places I mention. The full hierarchy is laid out at the top of [this docs page](https://docs.sonarqube.org/latest/analysis/analysis-parameters/).

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![Angel\_Millan](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/angel_millan/32/51900_2.png) [@Angel\_Millan](https://community.sonarsource.com/u/Angel_Millan)\
**Post date:** [November 24, 2023, 9:28pm UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483/10 "2023-11-24T21:28:54Z")

</div>

Hi, this is interesting, removing a project resets this??

![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/4/3/43a4ca5229c97a7a5b3871d45ccaa1e5d0422120.png)

We are using Developer Edition License

Thanks

---

<div class="post-metadata">

**Author:** ![acalero](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/acalero/32/70247_2.png) [@acalero](https://community.sonarsource.com/u/acalero)\
**Post date:** [November 25, 2023, 8:48am UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483/11 "2023-11-25T08:48:21Z")

</div>

Hi!

Removing something always frees space. Same thing happens with lines of code in SonarQube. If you remove the project, the lines no longer exist.

The problem is that you lose the data removed 😂

Best regards.

---

<div class="post-metadata">

**Author:** ![Angel\_Millan](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/angel_millan/32/51900_2.png) [@Angel\_Millan](https://community.sonarsource.com/u/Angel_Millan)\
**Post date:** [November 25, 2023, 10:07am UTC](https://community.sonarsource.com/t/developer-edition-failed-analysis-due-to-lines-of-code-limit/19483/12 "2023-11-25T10:07:49Z")

</div>

Yeah, right! Removing always frees space, but deleting if we made something wrong at initial configuration data at that moment doesn’t matter, in my case was that, I added a project and forgot to exclude the migration of a C# project and sonar analyzed more the 50k unnecessarily,  
Thanks to this answer I deleted the project and the count started over.

thanks God I found the answer hehehe

Thank you
