Godot: Add a warning when using non-typed variable

Created on 2 Nov 2018  路  4Comments  路  Source: godotengine/godot

Godot version:
3.1 0e27af2

Issue description:
It would be very helpful for me if will be option to show warning when using non-typed variable(constant, returning value etc.), because it is better to use only one of programming style.

Of course this should be disabled by default because not everyone use typed GDScript.

enhancement editor

Most helpful comment

There's already an indicator of whether or not a line is safe or not.

Besides that, you can turn on warnings for unsafe lines in the Project Settings.

All 4 comments

There's already an indicator of whether or not a line is safe or not. The line number goes from gray to green if a line is safe:
safe-line

But I think it needs at least a tooltip to be easier to understand.

See https://godotengine.org/article/optional-typing-gdscript

There's already an indicator of whether or not a line is safe or not.

Besides that, you can turn on warnings for unsafe lines in the Project Settings.

Besides that, you can turn on warnings for unsafe lines in the Project Settings.

This can probably be closed then, if there are already warnings you can enable in settings.

Yes it seems to cover the use case.

Was this page helpful?
0 / 5 - 0 ratings