SonarSource / sonar-scanner-msbuild

SonarScanner for .NET
http://redirect.sonarsource.com/doc/msbuild-sq-runner.html
GNU Lesser General Public License v3.0
364 stars 142 forks source link

Do not analyze twice shared projects #909

Open mickael-caro-sonarsource opened 4 years ago

mickael-caro-sonarsource commented 4 years ago

Currently, and even more since the new release of the Scanner, one directory is created per detected project, which means that for every build, if i have a shared project between multiple solution, it will be analyzed as much as there are build steps which include it. Thankfully, the scanner engine is smart enough to not duplicate those analyses as multiple projects, but count as one (either for LOCs)

The root mechanism of the target shall be changed, expect some huge work.

costin-zaharia-sonarsource commented 1 week ago

This affects also projects that are referenced by multiple solutions (or other projects). It's not about .shproj.