mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-16 06:20:34 +00:00
Resolve some warnings
This commit is contained in:
@@ -114,6 +114,7 @@ dotnet_code_quality_unused_parameters = all:warning
|
||||
|
||||
dotnet_diagnostic.ca1028.severity = silent
|
||||
dotnet_diagnostic.ca1031.severity = silent
|
||||
dotnet_diagnostic.ca1863.severity = silent
|
||||
|
||||
# Rule - almost everything
|
||||
dotnet_naming_rule.almost_everything_must_be_pascal_case.severity = warning
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
@@ -41,6 +42,7 @@ public sealed class TypeController : ArchiController {
|
||||
/// <remarks>
|
||||
/// Type info is defined as a representation of given object with its fields and properties being assigned to a string value that defines their type.
|
||||
/// </remarks>
|
||||
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields)]
|
||||
[HttpGet("{type:required}")]
|
||||
[ProducesResponseType<GenericResponse<TypeResponse>>((int) HttpStatusCode.OK)]
|
||||
[ProducesResponseType<GenericResponse>((int) HttpStatusCode.BadRequest)]
|
||||
|
||||
@@ -50,10 +50,7 @@
|
||||
<DebugType>none</DebugType>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<WarningsAsErrors />
|
||||
<WarningsNotAsErrors>CS8002,IL2026,IL2057,IL2072,IL2075,IL2104,IL3000</WarningsNotAsErrors>
|
||||
|
||||
<!-- TODO: .NET 8 -->
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors),CA1863</WarningsNotAsErrors>
|
||||
<WarningsNotAsErrors>CA1863,CS8002,IL2026,IL2057,IL2072,IL2075,IL2104,IL3000</WarningsNotAsErrors>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Enable public signing if not part of Visual Studio, which is too stupid to understand what public signing is -->
|
||||
|
||||
Reference in New Issue
Block a user