summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs
diff options
context:
space:
mode:
authorPaul Joannon <hello@pauljoannon.com>2024-02-19 22:15:37 +0100
committerPaul Joannon <hello@pauljoannon.com>2024-02-27 20:11:24 +0100
commit139a5df821bba81cb0ca27542afb47400dfad6ec (patch)
treeb387e38ad5d99ddb8f254b1565d48f2c34497670 /modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs
parentbb6b06c81343073f10cbbd2af515cf0dac1e6549 (diff)
downloadredot-engine-139a5df821bba81cb0ca27542afb47400dfad6ec.tar.gz
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)
Diffstat (limited to 'modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs')
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs
index 94c2bda363..2586db1137 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/AllReadOnly.cs
@@ -2,8 +2,8 @@ using Godot;
public partial class AllReadOnly : GodotObject
{
- public readonly string readonly_field = "foo";
- public string readonly_auto_property { get; } = "foo";
- public string readonly_property { get => "foo"; }
- public string initonly_auto_property { get; init; }
+ public readonly string ReadOnlyField = "foo";
+ public string ReadOnlyAutoProperty { get; } = "foo";
+ public string ReadOnlyProperty { get => "foo"; }
+ public string InitOnlyAutoProperty { get; init; }
}