diff --git a/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj b/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj
index 988ac364ae..82af680bcc 100644
--- a/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj
+++ b/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj
@@ -22,4 +22,16 @@
+
+
+
+
+
+
+
+
+
+ ../jellyfin.ruleset
+
+
diff --git a/Jellyfin.Drawing.Skia/SkiaCodecException.cs b/Jellyfin.Drawing.Skia/SkiaCodecException.cs
index f848636bcb..c103670520 100644
--- a/Jellyfin.Drawing.Skia/SkiaCodecException.cs
+++ b/Jellyfin.Drawing.Skia/SkiaCodecException.cs
@@ -1,3 +1,4 @@
+using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using SkiaSharp;
@@ -6,18 +7,19 @@ namespace Jellyfin.Drawing.Skia
///
/// Represents errors that occur during interaction with Skia codecs.
///
+ [SuppressMessage("Design", "CA1032:Implement standard exception constructors", Justification = "A custom property, CodecResult, is required when creating this exception type.")]
public class SkiaCodecException : SkiaException
{
///
- /// Returns the non-successfull codec result returned by Skia.
+ /// Returns the non-successful codec result returned by Skia.
///
- /// The non-successfull codec result returned by Skia.
+ /// The non-successful codec result returned by Skia.
public SKCodecResult CodecResult { get; }
///
/// Initializes a new instance of the class.
///
- /// The non-successfull codec result returned by Skia.
+ /// The non-successful codec result returned by Skia.
public SkiaCodecException(SKCodecResult result) : base()
{
CodecResult = result;
@@ -27,7 +29,7 @@ namespace Jellyfin.Drawing.Skia
/// Initializes a new instance of the class
/// with a specified error message.
///
- /// The non-successfull codec result returned by Skia.
+ /// The non-successful codec result returned by Skia.
/// The message that describes the error.
public SkiaCodecException(SKCodecResult result, string message)
: base(message)
@@ -41,6 +43,6 @@ namespace Jellyfin.Drawing.Skia
CultureInfo.InvariantCulture,
"Non-success codec result: {0}\n{1}",
CodecResult,
- base.ToString());
+ base.ToString());
}
}
diff --git a/Jellyfin.Drawing.Skia/SkiaEncoder.cs b/Jellyfin.Drawing.Skia/SkiaEncoder.cs
index 05d9bfdd64..3b781625fa 100644
--- a/Jellyfin.Drawing.Skia/SkiaEncoder.cs
+++ b/Jellyfin.Drawing.Skia/SkiaEncoder.cs
@@ -540,7 +540,7 @@ namespace Jellyfin.Drawing.Skia
{
if (bitmap == null)
{
- throw new ArgumentOutOfRangeException(string.Format("Skia unable to read image {0}", inputPath));
+ throw new ArgumentOutOfRangeException($"Skia unable to read image {inputPath}");
}
var originalImageSize = new ImageDimensions(bitmap.Width, bitmap.Height);