mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Add "untyped_declaration" warning
This commit is contained in:
parent
221884e6bc
commit
14edf044af
5 changed files with 53 additions and 13 deletions
|
@ -149,6 +149,10 @@ 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) {
|
||||
// TODO: Add ability for test scripts to specify which warnings to enable/disable for testing.
|
||||
continue;
|
||||
}
|
||||
String warning_setting = GDScriptWarning::get_settings_path_from_code((GDScriptWarning::Code)i);
|
||||
ProjectSettings::get_singleton()->set_setting(warning_setting, (int)GDScriptWarning::WARN);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue