2
0
Эх сурвалжийг харах

C#: CS1591 from `none` to `suggestion`

Thaddeus Crews 2 жил өмнө
parent
commit
657d81e056

+ 6 - 1
modules/mono/glue/GodotSharp/.editorconfig

@@ -1,5 +1,5 @@
 [**/Generated/**.cs]
 [**/Generated/**.cs]
-# Validate parameter is non-null before using it
+# CA1062: Validate parameter is non-null before using it
 # Useful for generated code, as it disables nullable
 # Useful for generated code, as it disables nullable
 dotnet_diagnostic.CA1062.severity = error
 dotnet_diagnostic.CA1062.severity = error
 # CA1069: Enums should not have duplicate values
 # CA1069: Enums should not have duplicate values
@@ -10,3 +10,8 @@ dotnet_diagnostic.CA1708.severity = none
 dotnet_diagnostic.CS1591.severity = none
 dotnet_diagnostic.CS1591.severity = none
 # CS1573: Parameter has no matching param tag in the XML comment
 # CS1573: Parameter has no matching param tag in the XML comment
 dotnet_diagnostic.CS1573.severity = none
 dotnet_diagnostic.CS1573.severity = none
+
+[GodotSharp/Core/**.cs]
+# CS1591: Missing XML comment for publicly visible type or member
+# TODO: Temporary change to not pollute the warnings, but we need to document public APIs
+dotnet_diagnostic.CS1591.severity = suggestion

+ 0 - 3
modules/mono/glue/GodotSharp/GodotSharp/GodotSharp.csproj

@@ -11,9 +11,6 @@
     <LangVersion>10</LangVersion>
     <LangVersion>10</LangVersion>
 
 
     <AnalysisMode>Recommended</AnalysisMode>
     <AnalysisMode>Recommended</AnalysisMode>
-
-    <!-- Disabled temporarily as it pollutes the warnings, but we need to document public APIs. -->
-    <NoWarn>CS1591</NoWarn>
   </PropertyGroup>
   </PropertyGroup>
   <PropertyGroup>
   <PropertyGroup>
     <Description>Godot C# Core API.</Description>
     <Description>Godot C# Core API.</Description>