Skip to content

Commit

Permalink
add explanation about SonarUnknownProjectType property
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed Mar 9, 2023
1 parent 1232206 commit dca7191
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions analyzers/its/SonarAnalyzer.Testing.ImportBefore.targets
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<!-- Only projects with explicit SonarQubeTestProject=true will be classified as test ones. -->
<SonarProjectType Condition="$(SonarQubeTestProject) != 'true'">Product</SonarProjectType>
<SonarProjectType Condition="$(SonarQubeTestProject) == 'true'">Test</SonarProjectType>
<!-- When SonarUnknownProjectType is present and it's true, indicated that we emulate the SonarLint envirorment -->
<SonarProjectType Condition="$(SonarUnknownProjectType) == 'true'">Unknown</SonarProjectType>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<PropertyGroup>
<SonarUnknownProjectType>true</SonarUnknownProjectType>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
<SonarUnknownProjectType>true</SonarUnknownProjectType>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit dca7191

Please sign in to comment.