From 0a51bb4ca54fa9fd15b40dac28476eae6ff0c816 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Thu, 13 Oct 2022 12:42:11 -0700 Subject: Add STATIC_CALLED_ON_INSTANCE warning to highlight when static functions are called directly from objects --- doc/classes/ProjectSettings.xml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index 4b2bb3b6e9..ff66affeab 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -413,6 +413,9 @@ When set to [code]warn[/code] or [code]error[/code], produces a warning or an error respectively when calling a ternary expression that has no effect on the surrounding code, such as writing [code]42 if active else 0[/code] as a statement. + + When set to [code]warn[/code] or [code]error[/code], produces a warning or an error respectively when calling a static method from an instance of a class instead of from the class directly. + If [code]true[/code], all warnings will be reported as if they are errors. -- cgit v1.2.3