I am integrating SonarCloud with GitHub actions for Objective-c repos. It is working now when I change something in the repo but it only sees the code that changed recently. Is there any way that I can scan the whole repo once and then scan whatever changed in the repo? There is part it says:
A few extra steps are needed for SonarCloud to analyze your code coverage Setup coverage analysis
Here are some screenshots of my project.
SonarCloud is analyzing your entire project & the results are reflected on the ‘Overall Code’ tab in your second screenshot. It just defaults to showing you the analysis results on what changed recently.
Thanks for responding. How can i change defaults to show overall code analyses? Because I just implement sonarcloud for that repo and i want to see if there is bugs or code duplications for the repo.
Sorry I am trying to understand because this is my first time using sonarcloud. When i click the overall code tab it is all 0 code only 6 code smells. and it says: A few extra steps are needed for SonarCloud to analyze your code coverage Setup coverage analysis
I don’t see whole repo that analyzed by sonarcloud if you check my second screenshot.
What are you looking for to tell you that the whole repo is analyzed?
What I see in that second screenshot is that analysis ran and found ver few issues. If you want to dig in further and see what code is included in the analysis, use the Code tab not shown in your screenshot:
There you can verify what is / is not being included in analysis.
As for the Coverage message, if you want to feed a coverage report into your analysis, I believe the link in that block should get you started. Or, you can jump straight into the docs
So when I click “code” tab it shows some folders and files. I don’t see whole repo. It includes just couple of files and folders. It is a bit repo and it should include some bugs and duplicate codes at least.
I analyze it with github actions and it creates build wrapper dir and logs in github actions i think. So i don’t know how to get it from github.
But this is my build yml file:
sonar.projectKey=ios-sdk-platform-sonarcloud
sonar.organization=org
# This is the name and version displayed in the SonarCloud UI.
sonar.projectName=ios-sdk-platform-sonarcloud
sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=.
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
sonar.cfamily.cache.enabled=true
sonar.cfamily.cache.path=relative_or_absolute_path_to_cache_location
if you check the screenshot that i shared what has been screened and what i actually have in the repo. So in sonarcloud i only see Sfara-Platform-SDK-IOSTest but there are different folders and each folder contain different files. and this is mostly objective-c repo.
I get that the two screenshots show different amounts of project contents. But I don’t know your project and I can’t see inside the directories shown in your screenshots. So… without logs and without knowing your project, I’m asking you to help me understand whether there are any commonalities among the things that got left out. Or among the things that did get included.
And BTW I believe you should be able to find your GitHub Action logs there in GitHub if you poke around in your project a bit.