mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 11:14:17 +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:
parent
bb6b06c813
commit
139a5df821
69 changed files with 1747 additions and 1712 deletions
|
|
@ -171,7 +171,7 @@ namespace Godot.SourceGenerators
|
|||
|
||||
if (godotClassMethods.Length > 0)
|
||||
{
|
||||
const string listType = "global::System.Collections.Generic.List<global::Godot.Bridge.MethodInfo>";
|
||||
const string ListType = "global::System.Collections.Generic.List<global::Godot.Bridge.MethodInfo>";
|
||||
|
||||
source.Append(" /// <summary>\n")
|
||||
.Append(" /// Get the method information for all the methods declared in this class.\n")
|
||||
|
|
@ -182,11 +182,11 @@ namespace Godot.SourceGenerators
|
|||
source.Append(" [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]\n");
|
||||
|
||||
source.Append(" internal new static ")
|
||||
.Append(listType)
|
||||
.Append(ListType)
|
||||
.Append(" GetGodotMethodList()\n {\n");
|
||||
|
||||
source.Append(" var methods = new ")
|
||||
.Append(listType)
|
||||
.Append(ListType)
|
||||
.Append("(")
|
||||
.Append(godotClassMethods.Length)
|
||||
.Append(");\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue