Must-share information (formatted with Markdown):
- which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) - 25.6.0.109173
- how is SonarQube deployed: zip, Docker, Helm - zip
- what are you trying to achieve: Find issues in python application.
- what have you tried so far to achieve this - False Positives appearning in sonar report
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
We recently upgraded to 25.6.0.109173, and after running the first scan on the new version, Sonar started reporting the following issue as a blocker. This is surprising because the calling function is invoking a helper function located in the same directory, but the reported path of the called function points to a different directory. Could you please help us understand this?
Calling function path - advertisement_masterworks_sync/main.py
helper.create_response(
True,
200,
message,
"",
formatted_new_projects_data_for_advertisement_projects,**
)
Called function path - app/backend/utils/helper.py
def create_response(success: bool, status_code: int, message=None, errors=None):
# Remove 1 unexpected arguments; 'create_response' expects at most 4 positional arguments.
The number and name of arguments passed to a function should match its parameterspython:S930