Skip to content

Commit 77f971a

Browse files
committed
Directory.Build.targets: Added global reference to Lucene.Net.CodeAnalysis.Dev to enable development analyzers
1 parent 5314f3f commit 77f971a

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.build/dependencies.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
<!-- J2N will break binary compatibility in 3.0.0 to fix the APIs of collection types -->
4141
<J2NPackageVersion>[2.1.0, 3.0.0)</J2NPackageVersion>
4242
<LiquidTestReportsMarkdownPackageVersion>1.0.9</LiquidTestReportsMarkdownPackageVersion>
43+
<LuceneNetCodeAnalysisDevPackageVersion>1.0.0-alpha.6</LuceneNetCodeAnalysisDevPackageVersion>
4344
<MicrosoftAspNetCoreHttpAbstractionsPackageVersion>2.3.0</MicrosoftAspNetCoreHttpAbstractionsPackageVersion>
4445
<MicrosoftAspNetCoreTestHostPackageVersion>8.0.19</MicrosoftAspNetCoreTestHostPackageVersion>
4546
<MicrosoftCodeAnalysisAnalyzersPackageVersion>2.9.8</MicrosoftCodeAnalysisAnalyzersPackageVersion>

Directory.Build.targets

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424

2525
<PropertyGroup Label="Warnings to be Disabled in Solution">
2626
<NoWarn Label="Legacy serialization support APIs are obsolete">$(NoWarn);SYSLIB0051</NoWarn>
27+
28+
<!-- These are noisy, but may be helpful during Lucene upgrades or optimization -->
29+
<NoWarn Label="Floating point types should not be compared for exact equality">$(NoWarn);LuceneDev1000</NoWarn>
30+
<NoWarn Label="Floating point type arithmetic needs to be checked on x86 in .NET Framework and may require extra casting">$(NoWarn);LuceneDev1002</NoWarn>
31+
<NoWarn Label="Java array parameters can sometimes be replaced with .NET out or ref parameters">$(NoWarn);LuceneDev1003</NoWarn>
32+
<NoWarn Label="Return array may be able to be replaced with out values">$(NoWarn);LuceneDev1004</NoWarn>
2733
</PropertyGroup>
2834

2935
<PropertyGroup Label="Solution-level Publish to Project-specific Directory">
@@ -222,6 +228,10 @@
222228
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="$(MicrosoftSourceLinkGitHubPackageReferenceVersion)" PrivateAssets="All"/>
223229
</ItemGroup>
224230

231+
<ItemGroup>
232+
<PackageReference Include="Lucene.Net.CodeAnalysis.Dev" Version="$(LuceneNetCodeAnalysisDevPackageVersion)" PrivateAssets="All" />
233+
</ItemGroup>
234+
225235
<Import Project=".build/release.targets" Condition="Exists('.build/release.targets')" />
226236

227237
</Project>

0 commit comments

Comments
 (0)