New code definition for Sonar IDE

Please provide

  • Operating system: Windows

  • IDE name and version : IDZ Version 17.0.2 running on eclipse

  • latest version of SonarQube for IDE/Eclipse (org.sonarlint.eclipse.site-11.14.0.83019.zip)

  • Programming language you’re coding in:Cobol

  • Is connected mode used:

    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?):Sonar server v2025.5 (113872)

    Hello Team ,

  • I want to understand how new code setting works in connected more on IDE ?

  • My project is on Reference branch settings

  • When I look at ‘Sonar bindings’ definition of my project it says ‘Branch Master’ ‘Since version is not provided ‘

Is it expected behavior ?

Also the ‘On the fly ‘ reports shows all issues which are Months old whenever a file is opened why does that happen ?

Can you please help in understanding if this is expected ‘New code ‘ behavior in IDE for ‘Reference Branch ‘ setting on server ?

Hey @Roopali,

I would like to hint to you the respective documentation page explaining how the New Code period works. This should be very helpful to you.

To summarize tho: Firstly, Reference Branch is not supported inside the IDE - also stated in the docs - and secondly, the SonarQube On The Fly view is displaying the issues based on your configuration, but only if you have a supported New Code behaviour enabled on your server. The configuration means here the IDE configurations on the SonarQube settings pages.

Cheers :baby_bottle:

Thanks for your reply . I went through the documents. I want to know that when we have ‘Reference branch’ new code setting on server then issues we see on IDE is based on overall code then ? It will not take in to account new code definitions hence ‘On the fly’ report will show all issues from previous months too ? Is my understanding correct ?

I’m not 100% sure (only a bit less, so maybe one of the delightful Sonar people can confirm or deny), but if I’m not mistaken, that when you have Reference Branch configured, in the IDE the SonarQube on The Fly view will show all issues, no matter the configuration, yes.