Skip to content

Commit b0e1c5b

Browse files
author
LoneWandererProductions
committed
celanup a bit
1 parent b166988 commit b0e1c5b

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

FileHandler/FileHandleSearchExtension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static class FileSearchExtension
3535
/// </summary>
3636
/// <param name="lst">The list we want to sort.</param>
3737
/// <returns>Ordered FileNames</returns>
38-
public static List<string> PathSortAlphaNumerical(this IEnumerable<string> lst)
38+
public static List<string>? PathSortAlphaNumerical(this IEnumerable<string> lst)
3939
{
4040
return lst?.OrderBy(Path.GetFileName).CustomSort().ToList();
4141
}
@@ -45,7 +45,7 @@ public static List<string> PathSortAlphaNumerical(this IEnumerable<string> lst)
4545
/// </summary>
4646
/// <param name="lst">The list of files.</param>
4747
/// <returns>Ordered List of files.</returns>
48-
private static IEnumerable<string> CustomSort(this IEnumerable<string> lst)
48+
private static IEnumerable<string>? CustomSort(this IEnumerable<string> lst)
4949
{
5050
if (lst is null || lst.Count() == 0)
5151
{

FileHandler/GlobalSuppressions.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// This file is used by Code Analysis to maintain SuppressMessage
2+
// attributes that are applied to this project.
3+
// Project-level suppressions either have no target or are given
4+
// a specific target and scoped to a namespace, type, member, etc.
5+
6+
using System.Diagnostics.CodeAnalysis;
7+
8+
[assembly: SuppressMessage("Roslynator", "RCS1077:Optimize LINQ method call", Justification = "<Ausstehend>", Scope = "member", Target = "~M:FileHandler.FileSearchExtension.CustomSort(System.Collections.Generic.IEnumerable{System.String})~System.Collections.Generic.IEnumerable{System.String}")]

Imaging.Texture/GlobalSuppressions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
using System.Diagnostics.CodeAnalysis;
77

88
[assembly: SuppressMessage("Roslynator", "RCS1123:Add parentheses when necessary", Justification = "<Ausstehend>", Scope = "member", Target = "~M:Imaging.Texture.ColorConverter.HslToRgbTuple(System.Double,System.Double,System.Double)~System.ValueTuple{System.Byte,System.Byte,System.Byte}")]
9+
[assembly: SuppressMessage("Roslynator", "RCS1123:Add parentheses when necessary", Justification = "<Ausstehend>", Scope = "member", Target = "~M:Imaging.Texture.TextureMathEngine.GenerateCanvas(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Double,System.Double,System.Double,System.Int32,System.Int32,System.Byte,System.Byte,System.Byte,System.Byte,System.Byte,System.Byte,System.Byte)~Imaging.Texture.RawTextureBuffer")]

0 commit comments

Comments
 (0)