# Modified code is not reflecting in sonarqube

**URL:** <https://community.sonarsource.com/t/modified-code-is-not-reflecting-in-sonarqube/73373>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube, scanner\
**Created:** [September 21, 2022, 6:58pm UTC](https://community.sonarsource.com/t/modified-code-is-not-reflecting-in-sonarqube/73373 "2022-09-21T18:58:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pardha](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Pardha](https://community.sonarsource.com/u/Pardha)\
**Post date:** [September 21, 2022, 6:58pm UTC](https://community.sonarsource.com/t/modified-code-is-not-reflecting-in-sonarqube/73373/1 "2022-09-21T18:58:20Z")

</div>

We have modified the code after the issues reported in sonarqube  
But for the next scan the sonarqube doesn’t show the modified code  
Can anyone please let me know what to do here.

Version : \* Developer Edition\* Version 9.5 (build 56709)

In sonarqube after modification

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/7/f/7fa61eb6fa9449bb36d2a6853fcbccd5e17c1c63.png)

Project Code after modification

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/0/8/08632f759f61a962bf6a6b372c7f430477950fbe.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [September 22, 2022, 10:04am UTC](https://community.sonarsource.com/t/modified-code-is-not-reflecting-in-sonarqube/73373/2 "2022-09-22T10:04:48Z")

</div>

Hey there.

There are typically only three explanations:

1. The modified source code isn’t actually checked out when analysis is being performed
2. The analysis fails (either the scan fails, or the processing of the background task which you can check at **Project Settings \> Background Tasks** )
3. The modified code is in a branch/pull request, and you’re looking at the wrong branch (possibly the Main Branch) in SonarQube.
