Skip to content

Commit

Permalink
[Build] Restore rules on stride analysers (#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kryptos-FR authored Jan 11, 2024
1 parent 0327957 commit f6d95f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sources/targets/Stride.Core.targets
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
Condition="'$(StrideEnableCodeAnalysis)' != 'true'">
<ItemGroup>
<!-- We want to include Stride analyzers by default -->
<AnalyzersNotToRemove Include="@(Analyzer)" Condition="$(FullPath.Contains('Stride'))" />
<AnalyzersNotToRemove Include="@(Analyzer)" Condition="$([System.String]::Copy(%(FullPath)).Contains('Stride'))" />
<!-- We want to include source generators by default -->
<AnalyzersNotToRemove Include="@(Analyzer)" Condition="$([System.String]::Copy(%(FullPath)).Contains('Generator'))" />
<AnalyzersNotToRemove Include="@(Analyzer)" Condition="$([System.String]::Copy(%(FullPath)).Contains('SourceGeneration'))" />
<AnalyzersToRemove Include="@(Analyzer)" Exclude="@(AnalyzersNotToRemove)" />
<Analyzer Remove="@(AnalyzersToRemove)"/>
</ItemGroup>
Expand Down

0 comments on commit f6d95f4

Please sign in to comment.