Skip to content

Commit

Permalink
Merge pull request #82801 from allenwp/82587-untyped-declaration-usab…
Browse files Browse the repository at this point in the history
…ility

Add a recommendation to turn on type hints with untyped declaration warning
  • Loading branch information
akien-mga committed Oct 30, 2023
2 parents ec5bfbd + ede91c9 commit 608226a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/classes/ProjectSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@
</member>
<member name="debug/gdscript/warnings/untyped_declaration" type="int" setter="" getter="" default="0">
When set to [code]warn[/code] or [code]error[/code], produces a warning or an error respectively when a variable or parameter has no static type, or if a function has no static return type.
[b]Note:[/b] This warning is recommended together with [member EditorSettings.text_editor/completion/add_type_hints] to help achieve type safety.
</member>
<member name="debug/gdscript/warnings/unused_local_constant" type="int" setter="" getter="" default="1">
When set to [code]warn[/code] or [code]error[/code], produces a warning or an error respectively when a local constant is never used.
Expand Down

0 comments on commit 608226a

Please sign in to comment.