Krupis
(Krupis)
February 10, 2025, 5:26am
1
Hello. I have read the documentation about Inclusions
and I have al read:
We want to be able to scan only a few files with SonarQube. Our goal is to scan a select few files whenever checking in code changes. Also, what would be the ideal way to do these tiny scans on each developers machine noting that we have our SonarQube server that scans every night? Will each developer have to have SonarQube installed? Will each developer need a SonarQube SQL database or can the results output to an ASCII text file, or perhaps the results can be scanned and uploaded to a remote S…
but still not able to grasp how to configure the .properties file for my project.
My project structure is as shown below:
Currently, my sonar-project.properties:
sonar.projectKey=xxxxx
sonar.qualitygate.wait=true
sonar.sources = modules/
Currently, it only scan all files in my modules directory. Additionally, I want to scan mainwindow.py
So I want to scan :
mainwindow.py
all files in modules directory
How can I modify my .properties to achieve this?
Colin
(Colin)
February 11, 2025, 9:28am
2
There are multiple ways (see the docs on analysis scope , but super simply, sonar.sources
accepts comma separated values of either individual files, or directories.
So:
sonar.sources = mainwindow.py,modules