Apply csharpier reflow across source tree

Reformats the entire Craftimizer source tree with dotnet csharpier 1.2.6
to match the Hellion Forge house style (matches what HellionChat enforces
in its pre-push pipeline). Pure whitespace + using-block sorting; no
semantic changes.

This is a one-time noisy commit. Future code edits in this fork should
land csharpier-clean because the pre-push hook (introduced in the next
commit) runs `dotnet csharpier check Craftimizer/` as Block C of the
preflight gate.

Trade-off acknowledged: this widens the merge gap with upstream
Craftimizer should Asriel ever resume maintenance. Given the upstream
has been dormant since FFXIV 7.4 and the fork is light-rename only
(internal namespaces unchanged), the marginal cost is acceptable.
This commit is contained in:
2026-05-26 20:21:21 +02:00
parent a52b9e8d76
commit b598c03e9e
35 changed files with 3329 additions and 1298 deletions
+19 -7
View File
@@ -1,10 +1,10 @@
using Craftimizer.Plugin;
using Dalamud.Plugin;
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using DotNext.Reflection;
using Craftimizer.Plugin;
using Dalamud.Plugin;
using DotNext.Collections.Generic;
using DotNext.Reflection;
namespace Craftimizer.Utils;
@@ -39,16 +39,27 @@ public sealed class Ipc
var returnsVoid = typeMethod.ReturnType == typeof(void);
var propSubscriber = typeof(IDalamudPluginInterface).GetMethod("GetIpcSubscriber", typeMethod.GetParameters().Length + 1, [typeof(string)]);
var propSubscriber = typeof(IDalamudPluginInterface).GetMethod(
"GetIpcSubscriber",
typeMethod.GetParameters().Length + 1,
[typeof(string)]
);
if (propSubscriber is null)
throw new InvalidOperationException("GetIpcSubscriber method not found");
var callGateSubscriber = propSubscriber.MakeGenericMethod([.. typeMethod.GetParameterTypes(), returnsVoid ? typeof(int) : typeMethod.ReturnType]).Invoke(Service.PluginInterface, [attr.Name ?? prop.Name]);
var callGateSubscriber = propSubscriber
.MakeGenericMethod([
.. typeMethod.GetParameterTypes(),
returnsVoid ? typeof(int) : typeMethod.ReturnType,
])
.Invoke(Service.PluginInterface, [attr.Name ?? prop.Name]);
if (callGateSubscriber is null)
throw new InvalidOperationException("CallGateSubscriber is null");
var invokeFunc = callGateSubscriber.GetType().GetMethod(returnsVoid ? "InvokeAction" : "InvokeFunc");
var invokeFunc = callGateSubscriber
.GetType()
.GetMethod(returnsVoid ? "InvokeAction" : "InvokeFunc");
if (invokeFunc is null)
throw new InvalidOperationException("Subscriber Invoke method not found");
@@ -62,7 +73,8 @@ public sealed class Ipc
public Func<bool> MacroMateIsAvailable { get; private set; } = null!;
[IPCCall("MacroMate.CreateOrUpdateMacro")]
public Func<string, string, string?, uint?, bool> MacroMateCreateMacro { get; private set; } = null!;
public Func<string, string, string?, uint?, bool> MacroMateCreateMacro { get; private set; } =
null!;
[IPCCall("MacroMate.ValidateGroupPath")]
public Func<string, (bool, string?)> MacroMateValidateGroupPath { get; private set; } = null!;