mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-24 02:06:47 +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.ca1028.severity = silent
|
||||||
dotnet_diagnostic.ca1031.severity = silent
|
dotnet_diagnostic.ca1031.severity = silent
|
||||||
|
dotnet_diagnostic.ca1863.severity = silent
|
||||||
|
|
||||||
# Rule - almost everything
|
# Rule - almost everything
|
||||||
dotnet_naming_rule.almost_everything_must_be_pascal_case.severity = warning
|
dotnet_naming_rule.almost_everything_must_be_pascal_case.severity = warning
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
@@ -41,6 +42,7 @@ public sealed class TypeController : ArchiController {
|
|||||||
/// <remarks>
|
/// <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.
|
/// 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>
|
/// </remarks>
|
||||||
|
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields)]
|
||||||
[HttpGet("{type:required}")]
|
[HttpGet("{type:required}")]
|
||||||
[ProducesResponseType<GenericResponse<TypeResponse>>((int) HttpStatusCode.OK)]
|
[ProducesResponseType<GenericResponse<TypeResponse>>((int) HttpStatusCode.OK)]
|
||||||
[ProducesResponseType<GenericResponse>((int) HttpStatusCode.BadRequest)]
|
[ProducesResponseType<GenericResponse>((int) HttpStatusCode.BadRequest)]
|
||||||
|
|||||||
@@ -50,10 +50,7 @@
|
|||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
<WarningsAsErrors />
|
<WarningsAsErrors />
|
||||||
<WarningsNotAsErrors>CS8002,IL2026,IL2057,IL2072,IL2075,IL2104,IL3000</WarningsNotAsErrors>
|
<WarningsNotAsErrors>CA1863,CS8002,IL2026,IL2057,IL2072,IL2075,IL2104,IL3000</WarningsNotAsErrors>
|
||||||
|
|
||||||
<!-- TODO: .NET 8 -->
|
|
||||||
<WarningsNotAsErrors>$(WarningsNotAsErrors),CA1863</WarningsNotAsErrors>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- Enable public signing if not part of Visual Studio, which is too stupid to understand what public signing is -->
|
<!-- 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