RCS0056 - roslynator_max_line_length = 160

This commit is contained in:
RoosterDragon
2024-07-27 16:09:46 +01:00
committed by Matthias Mailänder
parent 9d5d2ab493
commit 0649f3dc32
129 changed files with 606 additions and 245 deletions

View File

@@ -74,7 +74,10 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
var output = HtmlTemplate.JoinWith("\n").FormatInvariant(zoom, Convert.ToBase64String(modData.ModFiles.Open(image).ReadAllBytes()), "[" + regions.JoinWith(",") + "]");
var output = HtmlTemplate.JoinWith("\n").FormatInvariant(
zoom,
Convert.ToBase64String(modData.ModFiles.Open(image).ReadAllBytes()),
"[" + regions.JoinWith(",") + "]");
var outputPath = Path.ChangeExtension(image, ".html");
File.WriteAllLines(outputPath, new[] { output });
Console.WriteLine("Saved {0}", outputPath);

View File

@@ -244,7 +244,8 @@ namespace OpenRA.Mods.Common.UtilityCommands
.ToLowerInvariant();
}
static void FromChromeLayout(MiniYamlNodeBuilder node, Dictionary<string, string[]> translatables, string container, ref List<TranslationCandidate> translations)
static void FromChromeLayout(
MiniYamlNodeBuilder node, Dictionary<string, string[]> translatables, string container, ref List<TranslationCandidate> translations)
{
var nodeSplit = node.Key.Split('@');
var nodeType = nodeSplit[0];

View File

@@ -68,7 +68,9 @@ namespace OpenRA.Mods.Common.UtilityCommands
static void WriteDiagnosticsDisabling()
{
Console.WriteLine("--- This file only lists function \"signatures\", causing Lua Diagnostics errors: \"Annotations specify that a return value is required here.\"");
Console.WriteLine(
"--- This file only lists function \"signatures\", causing Lua Diagnostics errors: " +
"\"Annotations specify that a return value is required here.\"");
Console.WriteLine("--- and Lua Diagnostics warnings \"Unused local\" for the functions' parameters.");
Console.WriteLine("--- Disable those specific errors for the entire file.");
Console.WriteLine("---@diagnostic disable: missing-return");
@@ -341,7 +343,8 @@ namespace OpenRA.Mods.Common.UtilityCommands
if (requiredTraits.Length != 0)
Console.WriteLine(
$"{new string(' ', indentation * 4)}--- **Requires {(requiredTraits.Length == 1 ? "Trait" : "Traits")}:** {requiredTraits.Select(GetDocumentationUrl).JoinWith(", ")}");
$"{new string(' ', indentation * 4)}--- **Requires {(requiredTraits.Length == 1 ? "Trait" : "Traits")}:** " +
$"{requiredTraits.Select(GetDocumentationUrl).JoinWith(", ")}");
}
}