Skip to content

Allow users to choose if scripts should be forced to be statically typed (or not) #173

Closed
@dreamsComeTrue

Description

Describe the project you are working on:

Godot source code itself / RPG-type game in 2D

Describe the problem or limitation you are having in your project:

Having lot of GDScript files, I am not forced anyhow to maintain consistency across them.
Thus - I sometimes use optional typing, sometimes not.
I would love to have some sort of switch (on Editor Settings for example) that will force me
to remember to put types (or not) in Script files.

Describe how this feature / enhancement will help you overcome this problem or limitation:

Having scripts checked for using optional typing across whole files would set harmony across whole project.

Show a mock up screenshots/video or a flow diagram explaining how your proposal will work:

image

Describe implementation detail for your proposal (in code), if possible:

Probably (apart from Editor Settings changes) that would need a lot of modifications of script_text_editor.

If this enhancement will not be used often, can it be worked around with a few lines of script?:

Only, if team/developers agree to have one appointed way of writing scripts

Is there a reason why this should be core and not an add-on in the asset library?:

It should have access to Script Editor itself (or some kind of background checker/code linter) - and as long as script_text_editor is a plugin itself - it could be also considered as a addon.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions