Skip to content

Commit 45ebee3

Browse files
format and comment
1 parent 6986869 commit 45ebee3

17 files changed

Lines changed: 231 additions & 98 deletions

Common.Converter/ActiveToColorConverter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
5151
{
5252
return ActiveBrush; // Gold for Active
5353
}
54+
5455
return InactiveBrush; // Dark Gray for Inactive
5556
}
5657

Common.ExtendedObject.Tests/ExtendedSystemObjectsSetOperation.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,14 @@ public void RemoveFast_ItemNotFound_DoesNothing()
245245
public void RemoveAtFast_ValidIndex_RemovesAndSwaps()
246246
{
247247
// Arrange
248-
var list = new List<int> { 10, 20, 30, 40, 50 };
248+
var list = new List<int>
249+
{
250+
10,
251+
20,
252+
30,
253+
40,
254+
50
255+
};
249256

250257
// Act
251258
list.RemoveAtFast(1); // Removing 20

Core.Apps/CommandFactory.cs

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,12 @@ public static IReadOnlyList<ICommand> GetCommands(Weave? weave = null)
4343
// These don't require the registry in their constructor
4444
modules.AddRange(new ICommand[]
4545
{
46-
new HeaderExtractor(),
47-
new ResXtract(),
48-
new AllocationAnalyzer(),
49-
new DisposableAnalyzer(),
50-
new DoubleNewlineAnalyzer(),
51-
new DuplicateStringLiteralAnalyzer(),
52-
new EventHandlerAnalyzer(),
53-
new HotPathAnalyzer(),
54-
new LicenseHeaderAnalyzer(),
55-
new UnusedClassAnalyzer(),
56-
new UnusedConstantAnalyzer(),
57-
new UnusedLocalVariableAnalyzer(),
58-
new UnusedParameterAnalyzer(),
59-
new UnusedPrivateFieldAnalyzer(),
60-
new DocCommentCoverageCommand(),
61-
new DeadReferenceAnalyzer(),
62-
new ApiExplorerCommand(),
63-
new LogTailCommand(),
64-
new SmartPingPro(),
65-
new Tree()
46+
new HeaderExtractor(), new ResXtract(), new AllocationAnalyzer(), new DisposableAnalyzer(),
47+
new DoubleNewlineAnalyzer(), new DuplicateStringLiteralAnalyzer(), new EventHandlerAnalyzer(),
48+
new HotPathAnalyzer(), new LicenseHeaderAnalyzer(), new UnusedClassAnalyzer(),
49+
new UnusedConstantAnalyzer(), new UnusedLocalVariableAnalyzer(), new UnusedParameterAnalyzer(),
50+
new UnusedPrivateFieldAnalyzer(), new DocCommentCoverageCommand(), new DeadReferenceAnalyzer(),
51+
new ApiExplorerCommand(), new LogTailCommand(), new SmartPingPro(), new Tree()
6652
});
6753

6854
// --- PRODUCERS (Require Registry) ---
@@ -73,6 +59,7 @@ public static IReadOnlyList<ICommand> GetCommands(Weave? weave = null)
7359
modules.Add(new WhoAmI(registry));
7460
modules.Add(new DependencyExplorer(registry));
7561
}
62+
7663
return modules.AsReadOnly();
7764
}
7865

Core.Inject/CoreInjector.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ public void Dispose()
181181
{
182182
(instance as IDisposable)?.Dispose();
183183
}
184+
184185
_singletonInstances.Clear();
185186
}
186187

ExtendedSystemObjects/ExtendedDictionary.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ public static bool AddDistinct<TKey, TValue>(this IDictionary<TKey, List<TValue>
111111
/// <param name="key">Unique Key</param>
112112
/// <param name="value">Value to add</param>
113113
[MethodImpl(MethodImplOptions.AggressiveInlining)]
114-
public static void AddDistinct<TKey, TValue>(this Dictionary<TKey, TValue> dic, TKey key, TValue value) where TKey : notnull
114+
public static void AddDistinct<TKey, TValue>(this Dictionary<TKey, TValue> dic, TKey key, TValue value)
115+
where TKey : notnull
115116
{
116117
dic[key] = value;
117118
}
@@ -126,7 +127,8 @@ public static void AddDistinct<TKey, TValue>(this Dictionary<TKey, TValue> dic,
126127
/// <param name="key">The key of the key-value pair to add.</param>
127128
/// <param name="value">The value of the key-value pair to add.</param>
128129
/// <exception cref="ArgumentException">Thrown if the key or value already exist in the dictionary.</exception>
129-
public static void AddDistinctKeyValue<TKey, TValue>(this Dictionary<TKey, TValue> dic, TKey key, TValue value) where TKey : notnull
130+
public static void AddDistinctKeyValue<TKey, TValue>(this Dictionary<TKey, TValue> dic, TKey key, TValue value)
131+
where TKey : notnull
130132
{
131133
if (dic.ContainsKey(key))
132134
{
@@ -150,7 +152,8 @@ public static void AddDistinctKeyValue<TKey, TValue>(this Dictionary<TKey, TValu
150152
/// <typeparam name="TValue">Internal Value</typeparam>
151153
/// <param name="dic">Internal Target Dictionary</param>
152154
/// <returns>Sorted Dictionary</returns>
153-
public static Dictionary<TKey, TValue> Sort<TKey, TValue>(this Dictionary<TKey, TValue> dic) where TKey : notnull
155+
public static Dictionary<TKey, TValue> Sort<TKey, TValue>(this Dictionary<TKey, TValue> dic)
156+
where TKey : notnull
154157
{
155158
var sortedPairs = dic.OrderBy(pair => pair.Key).ToList();
156159

@@ -190,7 +193,8 @@ public static bool IsNullOrEmpty<TKey, TValue>([NotNullWhen(false)] this IDictio
190193
/// <returns>False if one is missing. <see cref="bool" />.</returns>
191194
/// <typeparam name="TKey">Internal Key</typeparam>
192195
/// <typeparam name="TValue">Internal Value</typeparam>
193-
public static bool ContainsKeys<TKey, TValue>(this Dictionary<TKey, TValue> dic, IEnumerable<TKey> enumerable) where TKey : notnull
196+
public static bool ContainsKeys<TKey, TValue>(this Dictionary<TKey, TValue> dic, IEnumerable<TKey> enumerable)
197+
where TKey : notnull
194198
{
195199
return enumerable.All(dic.ContainsKey);
196200
}
@@ -292,7 +296,8 @@ public static Dictionary<TKey, TValue> GetDictionaryByValues<TKey, TValue>(this
292296
/// <typeparam name="TValue">Internal Value</typeparam>
293297
/// <param name="dic">Internal Target Dictionary</param>
294298
/// <returns>Clone of the Input Dictionary</returns>
295-
public static Dictionary<TKey, TValue>? Clone<TKey, TValue>(this IDictionary<TKey, TValue> dic) where TKey : notnull
299+
public static Dictionary<TKey, TValue>? Clone<TKey, TValue>(this IDictionary<TKey, TValue> dic)
300+
where TKey : notnull
296301
{
297302
return dic?.ToDictionary(dctClone => dctClone.Key, dctClone => dctClone.Value);
298303
}

Imaging/ImagingResources.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public static class ImagingResources
374374
/// <summary>
375375
/// The File Appendix
376376
/// </summary>
377-
public static readonly List<string> Appendix =
377+
public static readonly List<string> Appendix =
378378

379379
[
380380
JpgExt,

RenderEngine/GLResourceManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,4 +272,4 @@ public void Dispose()
272272
GC.SuppressFinalize(this);
273273
}
274274
}
275-
}
275+
}

RenderEngine/ImageToolkit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,4 @@ public int[] CompositeToBits()
187187
}
188188
}
189189
}
190-
}
190+
}

RenderEngine/Interfaces/IImageToolkit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ public interface IImageToolkit
6262
/// <param name="layerIndices">The layer indices.</param>
6363
/// <param name="insertAt">The insert at.</param>
6464
void MergeLayers(LayeredImageContainer container, int[] layerIndices, int insertAt);
65-
}
65+
}

RenderEngine/LayeredImageContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,4 @@ private static unsafe void AlphaBlend(Span<byte> baseSpan, Span<byte> overlaySpa
234234
}
235235
}
236236
}
237-
}
237+
}

0 commit comments

Comments
 (0)