Is it possible to scan two different directories with one scan?
I would suggest looking at the documentaiton on analysis scope. It’s likely as simple as defining your scope in
sonar.sources, and making sure your analysis starts from the directory above those two folders.
it is not that simple. Please come back with a tested solution.
Yes, it is that simple, considering you didn’t give any additional information:
sonar-scanner -Dsonar.sources=dir1,dir2 (...)
You’ll need to be more clear about what language you’re scanning, what tool you’re using and what result do you expect to get if you want a better answer here.