2dc0129a11
IDE0065 ("using directives placement") is now fully suppressed in all build and IDE environments via .editorconfig and NoWarn in project files. Added HOW_TO_IGNORE_IDE0065.md for documentation. Refactored PhotoProvider.cs to use namespace-scoped usings and a primary constructor. Updated code analysis assemblies and project cache files to reflect these changes.
32 lines
1.1 KiB
XML
32 lines
1.1 KiB
XML
<Project>
|
|
<!-- Sets defaults for all projects in the repo -->
|
|
|
|
<PropertyGroup>
|
|
<Nullable>enable</Nullable>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
<WarningsNotAsErrors>NU1902;NU1903</WarningsNotAsErrors>
|
|
<!-- Suppress IDE0065 globally for all projects -->
|
|
<NoWarn>$(NoWarn);IDE0065</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
|
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
|
|
<!-- Don't enforce code style rules as build errors in Debug -->
|
|
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<AdditionalFiles Include="$(MSBuildThisFileDirectory)/BannedSymbols.txt" />
|
|
<AdditionalFiles Include="$(MSBuildThisFileDirectory)/stylecop.json" />
|
|
</ItemGroup>
|
|
|
|
<!-- Custom Analyzers -->
|
|
<ItemGroup Condition=" '$(MSBuildProjectName)' != 'Jellyfin.CodeAnalysis' AND '$(Configuration)' == 'Debug' ">
|
|
<ProjectReference Include="$(MSBuildThisFileDirectory)src/Jellyfin.CodeAnalysis/Jellyfin.CodeAnalysis.csproj" OutputItemType="Analyzer" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|