You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Cleanup C# projects, code quality & style
New rules: - Do not silence CA1805 any more - Limit where we silence CA1707, CA1711, CA1720 - Enforce severity=warning for IDE0040 - Enforce Allman style braces - Enforce naming conventions (IDE1006 is still severity=suggestion) Fixes: - Fix REFL045, CS1572, CS1573 - Suppress CS0618 when generating `InvokeGodotClassMethod` - Fix indent when generating GD_constants.cs - Temporarily silence CS1734 in generated code - Fix a lot of naming rule violations Misc.: - Remove ReSharper comments for RedundantNameQualifier - Remove suppression attributes for RedundantNameQualifier - Remove severity=warnings for CA1716, CA1304 (already included in the level of analysis we run)
This commit is contained in:
@@ -387,7 +387,7 @@ using Godot.NativeInterop;
|
||||
}
|
||||
|
||||
private static bool IsGodotInteropStruct(ITypeSymbol type) =>
|
||||
GodotInteropStructs.Contains(type.FullQualifiedNameOmitGlobal());
|
||||
_godotInteropStructs.Contains(type.FullQualifiedNameOmitGlobal());
|
||||
|
||||
private static bool IsByRefParameter(IParameterSymbol parameter) =>
|
||||
parameter.RefKind is RefKind.In or RefKind.Out or RefKind.Ref;
|
||||
@@ -448,7 +448,7 @@ using Godot.NativeInterop;
|
||||
source.Append(";\n");
|
||||
}
|
||||
|
||||
private static readonly string[] GodotInteropStructs =
|
||||
private static readonly string[] _godotInteropStructs =
|
||||
{
|
||||
"Godot.NativeInterop.godot_ref",
|
||||
"Godot.NativeInterop.godot_variant_call_error",
|
||||
|
||||
Reference in New Issue
Block a user