# Issue and code smells automatically disappeared

**URL:** <https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233>\
**Category:** SonarQube Server / Community Build\
**Tags:** csharp, dotnet, sonarqube, scanner\
**Created:** [February 7, 2021, 11:45am UTC](https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233 "2021-02-07T11:45:09Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ali\_tux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ali_tux/32/19052_2.png) [@ali\_tux](https://community.sonarsource.com/u/ali_tux)\
**Post date:** [February 7, 2021, 11:45am UTC](https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233/1 "2021-02-07T11:45:09Z")

</div>

Hi,

I have a sonarqube sever (developer edition v7.9 LTS), and I use azure DevOps integration to scan projects with full build on master. On one of the projects issues and code smells suddenly disappeared with no apparent reason, the following is the last scan with issues:

 ![last scan with issues](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/8/8/8817c79046bfceadfbf855563c63ee090d1cd0d0.png)

here is the last scan without:

 ![last scan without issues](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/e/e/eec5706f4d82f8f382011e60881dd0c5ccc9c3ca.png)

appreciate your help to fix this issue.

---

<div class="post-metadata">

**Author:** ![ali\_tux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ali_tux/32/19052_2.png) [@ali\_tux](https://community.sonarsource.com/u/ali_tux)\
**Post date:** [February 9, 2021, 9:26am UTC](https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233/2 "2021-02-09T09:26:17Z")

</div>

Also the issues is not reflected in the dashboard

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/d/6/d66683e1f761bf8ed65a9b2096e8b71244db0304.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 11, 2021, 4:38pm UTC](https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233/3 "2021-02-11T16:38:41Z")

</div>

Hi,

Could you also show a graph of your Lines of Code across time? I suspect something is toggling in your analysis settings that is including and then excluding the bulk of your code.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![ali\_tux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ali_tux/32/19052_2.png) [@ali\_tux](https://community.sonarsource.com/u/ali_tux)\
**Post date:** [February 16, 2021, 8:34am UTC](https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233/4 "2021-02-16T08:34:22Z")

</div>

Hi Ann,

Could you please elaborate more. Where can I get this information from Sonar? I have a git repo on Azure DevOps and the integration is straight forward, no extra settings defined.

Also since sonar is integrated with MSBuild, if one build fails, does it mean sonar will remove all existing issues?

---

<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 16, 2021, 1:01pm UTC](https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233/5 "2021-02-16T13:01:13Z")

</div>

Hi,

If you’ll go to your Activity page, you’ll have the ability to do a Custom graph & pick the metrics you want to see.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![ali\_tux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ali_tux/32/19052_2.png) [@ali\_tux](https://community.sonarsource.com/u/ali_tux)\
**Post date:** [February 17, 2021, 11:23am UTC](https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233/6 "2021-02-17T11:23:45Z")

</div>

Thx ann,

Here is the line of code graph

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/d/3/d3319bb21d2e06128f460b86885cfd6c99981d9c.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 17, 2021, 6:49pm UTC](https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233/7 "2021-02-17T18:49:30Z")

</div>

Hi,

Thanks for the graph. It doesn’t show what I expected to see: instead of a jagged line that jumps back and forth from 0 to ~15k I see slow but steady growth. I.e. there’s not something toggling what’s included (or not!) in analysis. It _also_ doesn’t show a lot of profile change events in that left rail, so we can’t explain it with rules being toggled off & on.

I think the next step is to share 2 analysis logs: 1 from a 0-issues analysis and one from a normal analysis. And TBH, I’ll probably be out of my depth at that point since I’m not .NETy but if so we can wait for the specialists to show up.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![ali\_tux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ali_tux/32/19052_2.png) [@ali\_tux](https://community.sonarsource.com/u/ali_tux)\
**Post date:** [February 18, 2021, 1:10pm UTC](https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233/8 "2021-02-18T13:10:02Z")

</div>

Hi ann,

I attached a logs before with issues, and after with no issues:

[scan\_wz\_no\_issues\_log.txt](https://community.sonarsource.com/uploads/short-url/fsBU6S9l1jytqUVVBWN66kcERYx.txt) (72.7 KB)  
[scans\_wz\_issues\_log.txt](https://community.sonarsource.com/uploads/short-url/baJ98pPSDvNguGm624YqHrwrmu.txt) (64.0 KB)

---

<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 22, 2021, 2:27pm UTC](https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233/9 "2021-02-22T14:27:50Z")

</div>

Hi,

Is your job doing a `Build` or `Rebuild`?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![ali\_tux](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ali_tux/32/19052_2.png) [@ali\_tux](https://community.sonarsource.com/u/ali_tux)\
**Post date:** [February 24, 2021, 8:42am UTC](https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233/10 "2021-02-24T08:42:42Z")

</div>

Hi ann,

Build

---

<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 24, 2021, 12:26pm UTC](https://community.sonarsource.com/t/issue-and-code-smells-automatically-disappeared/38233/11 "2021-02-24T12:26:11Z")

</div>

Hi,

That may be the problem. [The docs](https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-msbuild/) call for a rebuild, I believe to make sure every file is touched. Can you try with a `Rebuild` command?

&nbsp;  
Ann
