Enable Code Quality Rules
Enforces a variety of CAxxxx rules that do not have existing violations. For the benefit of dotnet_code_quality.CA2241.try_determine_additional_string_formatting_methods_automatically = true, rename parameters of methods that forward to string.Format so format issues will get detected automatically.
This commit is contained in:
@@ -139,12 +139,12 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
}
|
||||
|
||||
[Desc("Displays a debug message to the player, if \"Show Map Debug Messages\" is checked in the settings.")]
|
||||
public void Debug(string text)
|
||||
public void Debug(string format)
|
||||
{
|
||||
if (string.IsNullOrEmpty(text) || !Game.Settings.Debug.LuaDebug)
|
||||
if (string.IsNullOrEmpty(format) || !Game.Settings.Debug.LuaDebug)
|
||||
return;
|
||||
|
||||
TextNotificationsManager.Debug(text);
|
||||
TextNotificationsManager.Debug(format);
|
||||
}
|
||||
|
||||
[Desc("Display a text message at the specified location.")]
|
||||
|
||||
Reference in New Issue
Block a user