Skip to content

Commit

Permalink
pragma warning disable CA3003
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed Sep 28, 2024
1 parent b53c4b6 commit f6a260b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions League/Caching/HtmlToPdfConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

namespace League.Caching;

#pragma warning disable CA3003 // reason: False positive due to CancellationToken in GetPdfDataBrowser

/// <summary>
/// The class to create PDF files from HTML content.
/// For converting HTML to PDF, it uses either a Browser command line or <see cref="PuppeteerSharp"/>.
Expand Down Expand Up @@ -191,3 +193,5 @@ public void Dispose()
GC.SuppressFinalize(this);
}
}

#pragma warning restore CA3003 // reason: False positive due to CancellationToken in GetPdfDataBrowser
3 changes: 3 additions & 0 deletions League/Caching/ReportSheetCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

namespace League.Caching;

#pragma warning disable CA3003 // reason: False positive due to CancellationToken in GetOrCreatePdf

/// <summary>
/// Represents a cache for report sheets.
/// </summary>
Expand Down Expand Up @@ -121,4 +123,5 @@ private static string CreateTempPathFolder()
return tempFolder;
}
}
#pragma warning restore CA3003

0 comments on commit f6a260b

Please sign in to comment.