I am not able to get any result on introducing buggy lines of code for python however i do see that sonar cloud is reporting that the code coverage is failing.
Can someone tell me what I am missing ?? my code is below
HI Claire glad that you responded, Shall i attach screenshots ? will that help I am having a ADO project it is a python code which is getting analysed by the sonarcloud however if i create some wrong code or with some sort of bugs to see if sonarcloud catches it it just won’t it is just shows green and passed in my main branch… I do see that whatever code i make the changes are getting pushed into the code tab of the sonarcloud so there is a sync between my ADO git repository and the commit i make… Let me know if you need anything else … I am using the azure pipeline sonarcloud plugin to create the YAML code which will initialize , analyze and publish the code to sonarcloud
You showing us what buggy code you add, and what do you expect SonarCloud to report would really help.
Can you please create the very small public project somewhere and share the link here, or at least post the code properly formatted and add a comment on what issue you expect SonarCloud to catch, and where in the code?
Thanks for the snippet, I think I understand the problem now.
SonarCloud is not a compiler nor an interpreter, its goal is not to detect syntax errors, but code quality issues into valid code.
That’s completely normal that such a line does not trigger any error on SonarCloud, it is not the product responsiblity to take care of code syntax. IDEs, compilers and interpreters do that very well, and SonarLint / SonarCloud come after, to improve its quality.
You can read more on SonarCloud features on the documentation.