You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Add INFERRED_DECLARATION warning
This commit is contained in:
@@ -149,7 +149,7 @@ GDScriptTestRunner::GDScriptTestRunner(const String &p_source_dir, bool p_init_l
|
||||
// Set all warning levels to "Warn" in order to test them properly, even the ones that default to error.
|
||||
ProjectSettings::get_singleton()->set_setting("debug/gdscript/warnings/enable", true);
|
||||
for (int i = 0; i < (int)GDScriptWarning::WARNING_MAX; i++) {
|
||||
if (i == GDScriptWarning::UNTYPED_DECLARATION) {
|
||||
if (i == GDScriptWarning::UNTYPED_DECLARATION || i == GDScriptWarning::INFERRED_DECLARATION) {
|
||||
// TODO: Add ability for test scripts to specify which warnings to enable/disable for testing.
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user