Style: Trim trailing whitespace and ensure newline at EOF

Found by apply the file_format checks again via #91597.
This commit is contained in:
Rémi Verschelde
2024-05-08 10:04:47 +02:00
parent 17a81260cb
commit 7d03b1de0b
54 changed files with 54 additions and 66 deletions
@@ -2,5 +2,5 @@ using Godot;
public partial class ClassPartialModifier : Node
{
}
@@ -2,5 +2,5 @@ using Godot;
public class {|GD0001:ClassPartialModifier|} : Node
{
}
@@ -2,7 +2,7 @@ using Godot;
// This works because it inherits from GodotObject.
[GlobalClass]
public partial class CustomGlobalClass1 : GodotObject
public partial class CustomGlobalClass1 : GodotObject
{
}
@@ -2,7 +2,7 @@ using Godot;
// This works because it inherits from GodotObject and it doesn't have any generic type parameter.
[GlobalClass]
public partial class CustomGlobalClass : GodotObject
public partial class CustomGlobalClass : GodotObject
{
}
@@ -10,7 +10,7 @@ public class MustBeVariantGD0301
// This raises a GD0301 diagnostic error: object is not Variant (and Method<T> requires a variant generic type).
Method<{|GD0301:object|}>();
}
public void MethodCallsOk()
{
// All these calls are valid because they are Variant types.
@@ -75,7 +75,7 @@ public class MustBeVariantGD0301
public void Method<[MustBeVariant] T>()
{
}
public void MustBeVariantClasses()
{
new ClassWithGenericVariant<bool>();