Skip to content

Refactor code structure for improved readability and maintainability #128

Refactor code structure for improved readability and maintainability

Refactor code structure for improved readability and maintainability #128

Triggered via push March 18, 2026 09:00
Status Success
Total duration 1m 2s
Artifacts 1

ci.yml

on: push
ai-security-scan
0s
ai-security-scan
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
build
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-dotnet@v4, actions/upload-artifact@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
build: src/MiniPdf/DocxReader.cs#L537
Possible null reference argument for parameter 'hex' in 'PdfColor PdfColor.FromHex(string hex)'.
build: src/MiniPdf/ExcelReader.cs#L280
Possible null reference argument for parameter 'Style' in 'BorderSide.BorderSide(string Style, PdfColor? Color)'.
build: src/MiniPdf/DocxReader.cs#L518
Possible null reference argument for parameter 'Alignment' in 'DocxParagraph.DocxParagraph(List<DocxRun> Runs, List<DocxImage> Images, string Alignment = "left", float SpacingBefore = 0, float SpacingAfter = -1, float LineSpacing = 0, bool LineSpacingAbsolute = false, float IndentLeft = 0, float IndentRight = 0, float IndentFirstLine = 0, bool IsBulletList = false, bool IsNumberedList = false, int ListLevel = 0, string? ListText = null, string? StyleId = null, bool Bold = false, bool Italic = false, float FontSize = 0, PdfColor? Color = null, bool HasPageBreakBefore = false, bool HasPageBreakAfter = false, PdfColor? Shading = null, List<DocxTabStop>? TabStops = null, DocxPageLayout? SectionBreak = null, DocxBorders? Borders = null, List<DocxShape>? Shapes = null, bool ForceSpacingBefore = false, DocxTextBoxBorder? TextBoxBorder = null, bool ContextualSpacing = false)'.
build: src/MiniPdf/DocxReader.cs#L416
Possible null reference argument for parameter 'key' in 'bool Dictionary<string, DocxStyleInfo>.TryGetValue(string key, out DocxStyleInfo value)'.
build: src/MiniPdf/DocxReader.cs#L370
Possible null reference argument for parameter 'hex' in 'PdfColor PdfColor.FromHex(string hex)'.
build: src/MiniPdf/DocxReader.cs#L352
Dereference of a possibly null reference.
build: src/MiniPdf/DocxReader.cs#L322
Possible null reference argument for parameter 'key' in 'bool Dictionary<string, DocxNumberingDef>.TryGetValue(string key, out DocxNumberingDef value)'.
build: src/MiniPdf/DocxToPdfConverter.cs#L90
Possible null reference argument for parameter 's' in 'bool NetFxPolyfills.Contains(string s, string value, StringComparison comparison)'.
build: src/MiniPdf/DocxReader.cs#L128
Possible null reference argument for parameter 'hex' in 'PdfColor PdfColor.FromHex(string hex)'.
build: src/MiniPdf/ExcelToPdfConverter.cs#L101
Possible null reference argument for parameter 'footerFormat' in 'void ExcelToPdfConverter.RenderPageFooter(IReadOnlyList<PdfPage> pages, string footerFormat, int startPage, int endPage, int totalPages, float footerY, float marginL, float marginR)'.

Artifacts

Produced during runtime
Name Size Digest
test-results
19.5 KB
sha256:48b37d4585be47c277df6ef9699f7e368c60146bda848f2626cfd0d67d6f3a46