wip
This commit is contained in:
parent
57b0121445
commit
9929b2db36
23 changed files with 1318 additions and 0 deletions
17
src/sdk/Geekeey.Arcade.NET.Sdk.Test.csproj
Normal file
17
src/sdk/Geekeey.Arcade.NET.Sdk.Test.csproj
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<NoBuild>true</NoBuild>
|
||||
<IncludeBuildOutput>false</IncludeBuildOutput>
|
||||
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="Sdk/Geekeey.Arcade.NET.Sdk.Test/Sdk.props" Pack="true" PackagePath="Sdk/Sdk.props" />
|
||||
<None Include="Sdk/Geekeey.Arcade.NET.Sdk.Test/Sdk.targets" Pack="true" PackagePath="Sdk/Sdk.targets" />
|
||||
<None Include="Sdk/Geekeey.Arcade.NET.Sdk.Test/Geekeey.Arcade.NET.Sdk.Test.editorconfig" Pack="true" PackagePath="configuration/Geekeey.Arcade.NET.Sdk.Test.editorconfig" />
|
||||
<None Include="common/Common.props" Pack="true" PackagePath="common/Common.props" />
|
||||
<None Include="common/Common.targets" Pack="true" PackagePath="common/Common.targets" />
|
||||
<None Include="configuration/**/*" Pack="true" PackagePath="configuration/%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
17
src/sdk/Geekeey.Arcade.NET.Sdk.Web.csproj
Normal file
17
src/sdk/Geekeey.Arcade.NET.Sdk.Web.csproj
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<NoBuild>true</NoBuild>
|
||||
<IncludeBuildOutput>false</IncludeBuildOutput>
|
||||
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="Sdk/Geekeey.Arcade.NET.Sdk.Web/Sdk.props" Pack="true" PackagePath="Sdk//Sdk.props" />
|
||||
<None Include="Sdk/Geekeey.Arcade.NET.Sdk.Web/Sdk.targets" Pack="true" PackagePath="Sdk/Sdk.targets" />
|
||||
<None Include="Sdk/Geekeey.Arcade.NET.Sdk.Web/Geekeey.Arcade.NET.Sdk.Web.editorconfig" Pack="true" PackagePath="configuration/Geekeey.Arcade.NET.Sdk.Web.editorconfig" />
|
||||
<None Include="common/Common.props" Pack="true" PackagePath="common/Common.props" />
|
||||
<None Include="common/Common.targets" Pack="true" PackagePath="common/Common.targets" />
|
||||
<None Include="configuration/**/*" Pack="true" PackagePath="configuration/%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
17
src/sdk/Geekeey.Arcade.NET.Sdk.csproj
Normal file
17
src/sdk/Geekeey.Arcade.NET.Sdk.csproj
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<NoBuild>true</NoBuild>
|
||||
<IncludeBuildOutput>false</IncludeBuildOutput>
|
||||
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="Sdk/Geekeey.Arcade.NET.Sdk/Sdk.props" Pack="true" PackagePath="Sdk/Sdk.props" />
|
||||
<None Include="Sdk/Geekeey.Arcade.NET.Sdk/Sdk.targets" Pack="true" PackagePath="Sdk/Sdk.targets" />
|
||||
<None Include="Sdk/Geekeey.Arcade.NET.Sdk/Geekeey.Arcade.NET.Sdk.editorconfig" Pack="true" PackagePath="configuration/Geekeey.Arcade.NET.Sdk.editorconfig" />
|
||||
<None Include="common/Common.props" Pack="true" PackagePath="common/Common.props" />
|
||||
<None Include="common/Common.targets" Pack="true" PackagePath="common/Common.targets" />
|
||||
<None Include="configuration/**/*" Pack="true" PackagePath="configuration/%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
1
src/sdk/README.md
Normal file
1
src/sdk/README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
# Geekeey.Arcade.Sdk
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# global_level must be higher than the base editorconfig files
|
||||
is_global = true
|
||||
global_level = 1
|
||||
16
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Test/Sdk.props
Normal file
16
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Test/Sdk.props
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<UsingMicrosoftNETSdk Condition="'$(UsingMicrosoftNETSdk)' == ''">true</UsingMicrosoftNETSdk>
|
||||
|
||||
<CustomBeforeDirectoryBuildProps>$(CustomBeforeDirectoryBuildProps);$(MSBuildThisFileDirectory)../common/Common.props</CustomBeforeDirectoryBuildProps>
|
||||
<BeforeMicrosoftNETSdkTargets>$(BeforeMicrosoftNETSdkTargets);$(MSBuildThisFileDirectory)/../common/Common.targets</BeforeMicrosoftNETSdkTargets>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" Condition="'$(UsingMicrosoftNETSdk)' == 'true'" />
|
||||
<Import Project="$(MSBuildThisFileDirectory)../common/Common.props" Condition="'$(UsingMicrosoftNETSdk)' != 'true'" />
|
||||
|
||||
<ItemGroup>
|
||||
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)../configuration/Geekeey.Arcade.NET.Sdk.Test.editorconfig" />
|
||||
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)../configuration/Geekeey.Arcade.NET.FileBasedProgram.editorconfig" Condition="'$(FileBasedProgram)' == 'true'" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
3
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Test/Sdk.targets
Normal file
3
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Test/Sdk.targets
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<Project>
|
||||
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" Condition="'$(UsingMicrosoftNETSdk)' == 'true'" />
|
||||
</Project>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# global_level must be higher than the base editorconfig files
|
||||
is_global = true
|
||||
global_level = 1
|
||||
16
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Web/Sdk.props
Normal file
16
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Web/Sdk.props
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<UsingMicrosoftNETSdk Condition="'$(UsingMicrosoftNETSdk)' == ''">true</UsingMicrosoftNETSdk>
|
||||
|
||||
<CustomBeforeDirectoryBuildProps>$(CustomBeforeDirectoryBuildProps);$(MSBuildThisFileDirectory)../common/Common.props</CustomBeforeDirectoryBuildProps>
|
||||
<BeforeMicrosoftNETSdkTargets>$(BeforeMicrosoftNETSdkTargets);$(MSBuildThisFileDirectory)/../common/Common.targets</BeforeMicrosoftNETSdkTargets>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk.Web" Condition="'$(UsingMicrosoftNETSdk)' == 'true'" />
|
||||
<Import Project="$(MSBuildThisFileDirectory)../common/Common.props" Condition="'$(UsingMicrosoftNETSdk)' != 'true'" />
|
||||
|
||||
<ItemGroup>
|
||||
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)../configuration/Geekeey.Arcade.NET.Sdk.Web.editorconfig" />
|
||||
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)../configuration/Geekeey.Arcade.NET.FileBasedProgram.editorconfig" Condition="'$(FileBasedProgram)' == 'true'" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
3
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Web/Sdk.targets
Normal file
3
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Web/Sdk.targets
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<Project>
|
||||
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk.Web" Condition="'$(UsingMicrosoftNETSdk)' == 'true'" />
|
||||
</Project>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# global_level must be higher than the base editorconfig files
|
||||
is_global = true
|
||||
global_level = 1
|
||||
16
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk/Sdk.props
Normal file
16
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk/Sdk.props
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<UsingMicrosoftNETSdk Condition="'$(UsingMicrosoftNETSdk)' == ''">true</UsingMicrosoftNETSdk>
|
||||
|
||||
<CustomBeforeDirectoryBuildProps>$(CustomBeforeDirectoryBuildProps);$(MSBuildThisFileDirectory)../common/Common.props</CustomBeforeDirectoryBuildProps>
|
||||
<BeforeMicrosoftNETSdkTargets>$(BeforeMicrosoftNETSdkTargets);$(MSBuildThisFileDirectory)/../common/Common.targets</BeforeMicrosoftNETSdkTargets>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" Condition="'$(UsingMicrosoftNETSdk)' == 'true'" />
|
||||
<Import Project="$(MSBuildThisFileDirectory)../common/Common.props" Condition="'$(UsingMicrosoftNETSdk)' != 'true'" />
|
||||
|
||||
<ItemGroup>
|
||||
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)../configuration/Geekeey.Arcade.NET.Sdk.editorconfig" />
|
||||
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)../configuration/Geekeey.Arcade.NET.FileBasedProgram.editorconfig" Condition="'$(FileBasedProgram)' == 'true'" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
3
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk/Sdk.targets
Normal file
3
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk/Sdk.targets
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<Project>
|
||||
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" Condition="'$(UsingMicrosoftNETSdk)' == 'true'" />
|
||||
</Project>
|
||||
78
src/sdk/common/Common.props
Normal file
78
src/sdk/common/Common.props
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<ContinuousIntegrationBuild Condition="'$(CI)' == 'true'">true</ContinuousIntegrationBuild>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#package-validation-properties -->
|
||||
<EnablePackageValidation Condition="'$(EnablePackageValidation)' == ''">true</EnablePackageValidation>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Label="NuGet Package Info">
|
||||
<Authors>The Geekeey Team</Authors>
|
||||
<Copyright>Copyright (c) The Geekeey Team</Copyright>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<IncludeSymbols>true</IncludeSymbols>
|
||||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<AnalysisMode>Recommended</AnalysisMode>
|
||||
<AnalysisLevel>latest</AnalysisLevel>
|
||||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
||||
<WarningsAsErrors>nullable</WarningsAsErrors>
|
||||
<TreatWarningsAsErrors Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</TreatWarningsAsErrors>
|
||||
<MSBuildTreatWarningsAsErrors Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</MSBuildTreatWarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- nuget audit is disabled by default to not break builds which may get errors in the future -->
|
||||
<PropertyGroup>
|
||||
<NuGetAudit>false</NuGetAudit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Audit)' == 'true'">
|
||||
<NuGetAudit>true</NuGetAudit>
|
||||
<NuGetAuditLevel>low</NuGetAuditLevel>
|
||||
<NuGetAuditMode>all</NuGetAuditMode>
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1900;NU1901;NU1902;NU1903;NU1904;NU1905</WarningsNotAsErrors>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Generate the files used to investigate the size of Native AOT applications (e.g. using sizoscope) -->
|
||||
<PropertyGroup>
|
||||
<IlcGenerateMstatFile>true</IlcGenerateMstatFile>
|
||||
<IlcGenerateDgmlFile>true</IlcGenerateDgmlFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
|
||||
<RestoreSerializeGlobalProperties>true</RestoreSerializeGlobalProperties>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)../configuration/*.editorconfig" Exclude="$(MSBuildThisFileDirectory)../configuration/Geekeey.Arcade.NET.*.*.editorconfig" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="5.6.0" IsImplicitlyDefined="true">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="5.6.0" IsImplicitlyDefined="true">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.ResxSourceGenerator" Version="5.0.0-1.25277.114" IsImplicitlyDefined="true">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
39
src/sdk/common/Common.targets
Normal file
39
src/sdk/common/Common.targets
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<Project>
|
||||
|
||||
<!-- Opt in to the 'System.Text.Json' behaviors that honor the nullable reference type annotations and the 'required'
|
||||
constructor parameters. Both are opt-in in the runtime for backward compatibility, but they make the deserialization
|
||||
consistent with what the type declares. A switch explicitly set by the project is left untouched.
|
||||
Set 'EnableDefaultJsonSerializationOptions' to 'false' to opt out. -->
|
||||
<ItemGroup Condition="'$(EnableDefaultJsonSerializationOptions)' != 'false'">
|
||||
<RuntimeHostConfigurationOption Include="System.Text.Json.Serialization.RespectNullableAnnotationsDefault"
|
||||
Value="true"
|
||||
Condition="@(RuntimeHostConfigurationOption->AnyHaveMetadataValue('Identity', 'System.Text.Json.Serialization.RespectNullableAnnotationsDefault')) != 'true'" />
|
||||
<RuntimeHostConfigurationOption Include="System.Text.Json.Serialization.RespectRequiredConstructorParametersDefault"
|
||||
Value="true"
|
||||
Condition="@(RuntimeHostConfigurationOption->AnyHaveMetadataValue('Identity', 'System.Text.Json.Serialization.RespectRequiredConstructorParametersDefault')) != 'true'" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(Language)' == 'C#' AND ('$(ImplicitUsings)' == 'true' OR '$(ImplicitUsings)' == 'enable')">
|
||||
<Using Include="System.Diagnostics.CodeAnalysis" />
|
||||
<Using Include="System.Globalization" />
|
||||
<Using Include="System.Text" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<AdditionalFiles Include="$(MSBuildThisFileDirectory)../configuration/BannedSymbols.txt" Condition="'$(IncludeDefaultBannedSymbols)' != 'false'" Visible="false" />
|
||||
<AdditionalFiles Include="$(MSBuildThisFileDirectory)../configuration/BannedSymbols.NewtonsoftJson.txt" Condition="'$(BannedNewtonsoftJsonSymbols)' != 'false'" Visible="false" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="EmbedBannedSymbolsInBinLog" AfterTargets="CoreCompile">
|
||||
<ItemGroup>
|
||||
<EmbedInBinlog Include="@(AdditionalFiles)" Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('%(Filename)%(Extension)', '^BannedSymbols(\..+)?\.txt$'))" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<Target Name="EmbedEditorConfigInBinLog" AfterTargets="CoreCompile">
|
||||
<ItemGroup>
|
||||
<EmbedInBinlog Include="@(EditorConfigFiles)" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# global_level must be higher than the NET Analyzer files
|
||||
is_global = true
|
||||
global_level = 0
|
||||
|
||||
dotnet_banned_api_analyzer.exclude_generated_code = true
|
||||
|
||||
# RS0030: Do not use banned APIs
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/Microsoft.CodeAnalysis.BannedApiAnalyzers/BannedApiAnalyzers.Help.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0030.severity = warning
|
||||
|
||||
# RS0031: The list of banned symbols contains a duplicate
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/Microsoft.CodeAnalysis.BannedApiAnalyzers/BannedApiAnalyzers.Help.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0031.severity = warning
|
||||
|
||||
# RS0035: External access to internal symbols outside the restricted namespace(s) is prohibited
|
||||
# Enabled: True, Severity: error
|
||||
dotnet_diagnostic.RS0035.severity = error
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# global_level must be higher than the NET Analyzer files
|
||||
is_global = true
|
||||
global_level = 0
|
||||
|
|
@ -0,0 +1,113 @@
|
|||
# global_level must be higher than the NET Analyzer files
|
||||
is_global = true
|
||||
global_level = 0
|
||||
|
||||
# Bail out silently for projects that do not have public API files. Projects opt in to
|
||||
# public API tracking by adding PublicAPI.Shipped.txt / PublicAPI.Unshipped.txt.
|
||||
dotnet_public_api_analyzer.require_api_files = true
|
||||
|
||||
# RS0016: Add public types and members to the declared API
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0016.severity = warning
|
||||
|
||||
# RS0017: Remove deleted types and members from the declared API
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0017.severity = warning
|
||||
|
||||
# RS0022: Constructor make noninheritable base class inheritable
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0022.severity = warning
|
||||
|
||||
# RS0024: The contents of the public API files are invalid
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0024.severity = warning
|
||||
|
||||
# RS0025: Do not duplicate symbols in public API files
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0025.severity = warning
|
||||
|
||||
# RS0026: Do not add multiple public overloads with optional parameters
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/docs/Adding%20Optional%20Parameters%20in%20Public%20API.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0026.severity = warning
|
||||
|
||||
# RS0027: API with optional parameter(s) should have the most parameters amongst its public overloads
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/docs/Adding%20Optional%20Parameters%20in%20Public%20API.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0027.severity = warning
|
||||
|
||||
# RS0036: Annotate nullability of public types and members in the declared API
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0036.severity = warning
|
||||
|
||||
# RS0037: Enable tracking of nullability of reference types in the declared API
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0037.severity = warning
|
||||
|
||||
# RS0041: Public members should not use oblivious types
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0041.severity = warning
|
||||
|
||||
# RS0048: Missing shipped or unshipped public API file
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0048.severity = warning
|
||||
|
||||
# RS0050: API is marked as removed but it exists in source code
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: True, Severity: warning
|
||||
dotnet_diagnostic.RS0050.severity = warning
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Internal API tracking (InternalAPI.Shipped.txt / InternalAPI.Unshipped.txt)
|
||||
# These rules are disabled by default. Projects opt in to internal API tracking
|
||||
# by adding the InternalAPI.*.txt files, so the defaults are kept here.
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# RS0051: Add internal types and members to the declared API
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: False, Severity: warning
|
||||
dotnet_diagnostic.RS0051.severity = none
|
||||
|
||||
# RS0052: Remove deleted types and members from the declared internal API
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: False, Severity: warning
|
||||
dotnet_diagnostic.RS0052.severity = none
|
||||
|
||||
# RS0053: The contents of the internal API files are invalid
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: False, Severity: warning
|
||||
dotnet_diagnostic.RS0053.severity = none
|
||||
|
||||
# RS0054: Do not duplicate symbols in internal API files
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: False, Severity: warning
|
||||
dotnet_diagnostic.RS0054.severity = none
|
||||
|
||||
# RS0055: Annotate nullability of internal types and members in the declared API
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: False, Severity: warning
|
||||
dotnet_diagnostic.RS0055.severity = none
|
||||
|
||||
# RS0056: Enable tracking of nullability of reference types in the declared API
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: False, Severity: warning
|
||||
dotnet_diagnostic.RS0056.severity = none
|
||||
|
||||
# RS0057: Internal members should not use oblivious types
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: False, Severity: warning
|
||||
dotnet_diagnostic.RS0057.severity = none
|
||||
|
||||
# RS0058: Missing shipped or unshipped internal API file
|
||||
# Help link: https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyzers/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
|
||||
# Enabled: False, Severity: warning
|
||||
dotnet_diagnostic.RS0058.severity = none
|
||||
9
src/sdk/configuration/BannedSymbols.NewtonsoftJson.txt
Normal file
9
src/sdk/configuration/BannedSymbols.NewtonsoftJson.txt
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
N:Newtonsoft
|
||||
N:Newtonsoft.Json
|
||||
N:Newtonsoft.Json.Bson
|
||||
N:Newtonsoft.Json.Converters
|
||||
N:Newtonsoft.Json.Linq
|
||||
N:Newtonsoft.Json.Linq.JsonPath
|
||||
N:Newtonsoft.Json.Schema
|
||||
N:Newtonsoft.Json.Serialization
|
||||
N:Newtonsoft.Json.Utilities
|
||||
50
src/sdk/configuration/BannedSymbols.txt
Normal file
50
src/sdk/configuration/BannedSymbols.txt
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
T:System.Collections.ArrayList;Use System.Collections.Generic.List<T> instead
|
||||
M:System.Reflection.Assembly.GetAssembly(System.Type);Use Type.Assembly instead
|
||||
|
||||
P:System.DateTime.Now;Use System.DateTime.UtcNow instead
|
||||
P:System.DateTimeOffset.Now;Use System.DateTimeOffset.UtcNow instead
|
||||
|
||||
P:System.IO.FileSystemInfo.CreationTime;Use CreationTimeUtc instead
|
||||
P:System.IO.FileSystemInfo.LastAccessTime;Use LastAccessTimeUtc instead
|
||||
P:System.IO.FileSystemInfo.LastWriteTime;Use LastWriteTimeUtc instead
|
||||
|
||||
M:System.IO.File.GetCreationTime(System.String);Use GetCreationTimeUtc instead
|
||||
M:System.IO.File.GetCreationTime(Microsoft.Win32.SafeHandles.SafeFileHandle);Use GetCreationTimeUtc instead
|
||||
M:System.IO.File.GetLastAccessTime(System.String);Use GetLastAccessTimeUtc instead
|
||||
M:System.IO.File.GetLastAccessTime(Microsoft.Win32.SafeHandles.SafeFileHandle);Use GetLastAccessTimeUtc instead
|
||||
M:System.IO.File.GetLastWriteTime(System.String);Use GetLastWriteTimeUtc instead
|
||||
M:System.IO.File.GetLastWriteTime(Microsoft.Win32.SafeHandles.SafeFileHandle);Use GetLastWriteTimeUtc instead
|
||||
M:System.IO.File.SetCreationTime(System.String,System.DateTime);Use SetCreationTimeUtc instead
|
||||
M:System.IO.File.SetCreationTime(Microsoft.Win32.SafeHandles.SafeFileHandle,System.DateTime);Use SetCreationTimeUtc instead
|
||||
M:System.IO.File.SetLastAccessTime(System.String,System.DateTime);Use SetLastAccessTimeUtc instead
|
||||
M:System.IO.File.SetLastAccessTime(Microsoft.Win32.SafeHandles.SafeFileHandle,System.DateTime);Use SetLastAccessTimeUtc instead
|
||||
M:System.IO.File.SetLastWriteTime(System.String,System.DateTime);Use SetLastWriteTimeUtc instead
|
||||
M:System.IO.File.SetLastWriteTime(Microsoft.Win32.SafeHandles.SafeFileHandle,System.DateTime);Use SetLastWriteTimeUtc instead
|
||||
|
||||
M:System.IO.Directory.GetCreationTime(System.String);Use GetCreationTimeUtc instead
|
||||
M:System.IO.Directory.GetLastWriteTime(System.String);Use GetLastWriteTimeUtc instead
|
||||
M:System.IO.Directory.GetLastAccessTime(System.String);Use GetLastAccessTimeUtc instead
|
||||
M:System.IO.Directory.SetCreationTime(System.String,System.DateTime);Use SetCreationTimeUtc instead
|
||||
M:System.IO.Directory.SetLastAccessTime(System.String,System.DateTime);Use SetLastAccessTimeUtc instead
|
||||
M:System.IO.Directory.SetLastWriteTime(System.String,System.DateTime);Use SetLastWriteTimeUtc instead
|
||||
|
||||
F:System.StringComparison.InvariantCulture;Do you mean Ordinal?
|
||||
F:System.StringComparison.InvariantCultureIgnoreCase;Do you mean OrdinalIgnoreCase?
|
||||
P:System.StringComparer.InvariantCulture;Do you mean Ordinal?
|
||||
P:System.StringComparer.InvariantCultureIgnoreCase;Do you mean OrdinalIgnoreCase?
|
||||
|
||||
M:System.Enum.TryParse(System.Type,System.String,System.Object);Use an overload with a ignoreCase argument
|
||||
M:System.Enum.TryParse(System.Type,System.ReadOnlySpan{System.Char},System.Object);Use an overload with a ignoreCase argument
|
||||
M:System.Enum.TryParse``1(System.String,``0@);Use an overload with a ignoreCase argument
|
||||
M:System.Enum.TryParse``1(System.ReadOnlySpan{System.Char},``0@);Use an overload with a ignoreCase argument
|
||||
|
||||
M:System.Globalization.CultureInfo.#ctor(System.String);Use CultureInfo.GetCultureInfo
|
||||
|
||||
T:System.Tuple`1;Use System.ValueTuple`1
|
||||
T:System.Tuple`2;Use System.ValueTuple`2
|
||||
T:System.Tuple`3;Use System.ValueTuple`3
|
||||
T:System.Tuple`4;Use System.ValueTuple`4
|
||||
T:System.Tuple`5;Use System.ValueTuple`5
|
||||
T:System.Tuple`6;Use System.ValueTuple`6
|
||||
T:System.Tuple`7;Use System.ValueTuple`7
|
||||
T:System.Tuple`8;Use System.ValueTuple`8
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue