C# diagnostics¶
Godot includes analyzers that inspect your C# source code to check for invalid or unsupported code and let you know that something is wrong during build time.
Rules¶
- GD0001: Missing partial modifier on declaration of type which is a subclass of GodotObject
- GD0002: Missing partial modifier on declaration of type which contains one or more subclasses of GodotObject
- GD0101: Attempted to export static member
- GD0102: The type of the exported member is not supported
- GD0103: The exported member is read-only
- GD0104: The exported property is write-only
- GD0105: Attempted to export indexer property
- GD0106: Attempted to export explicit interface property implementation
- GD0201: The name of the delegate must end with 'EventHandler'
- GD0202: The parameter of the delegate signature of the signal is not supported
- GD0203: The delegate signature of the signal must return void
- GD0301: The generic type argument must be a Variant compatible type
- GD0302: The generic type parameter must be annotated with the MustBeVariant attribute
- GD0303: Symbol parent of a type argument that must be Variant compatible was not handled
- GD0401: The class must derive from GodotObject or a derived class
- GD0402: The class must not contain generic arguments