Scan documents to PDF and more, as simply as possible.
This report summarizes scanner evidence for cyanfish/naps2, a C# project with 4,726 GitHub stars. SynthScan examined 108,594 lines of code across 1172 source files, recording 173 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 2.5 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 172 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 173 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 173 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | NAPS2.Lib.Wpf/EtoForms/Wpf/XamlTemplates.cs | 21 | COMMENT | |
| LOW | NAPS2.Lib/ClientCreds-.Designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | NAPS2.Lib/Icons.Designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | NAPS2.Lib/ClientCreds_.Designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | NAPS2.Lib/Util/IOverwritePrompt.cs | 1 | namespace NAPS2.Util; | COMMENT |
| LOW | NAPS2.Lib/Config/Naps2Config.cs | 1 | using NAPS2.Config.Model; | COMMENT |
| LOW | NAPS2.Lib/Config/Model/ConfigAttribute.cs | 1 | namespace NAPS2.Config.Model; | COMMENT |
| LOW | NAPS2.Lib/Config/Model/TransactionConfigScope.cs | 1 | using System.Linq.Expressions; | COMMENT |
| LOW | NAPS2.Lib/Images/ListViewDiffs.cs | 1 | using System.Collections.Immutable; | COMMENT |
| LOW | NAPS2.Lib/Recovery/RecoveryStorageManager.cs | 1 | using NAPS2.Scan; | COMMENT |
| LOW | NAPS2.Lib/Recovery/RecoveryImage.cs | 1 | namespace NAPS2.Recovery; | COMMENT |
| LOW | NAPS2.Lib/Recovery/RecoveryImage.cs | 21 | // { | COMMENT |
| LOW | NAPS2.Lib/Recovery/RecoveryImage.cs | 41 | // _recoveryLockFile = new FileInfo(Path.Combine(_recoveryFolder.FullName, LOCK_FILE_NAME)); | COMMENT |
| LOW | NAPS2.Lib/Recovery/RecoveryImage.cs | 61 | // return DeferredSave.Defer(); | COMMENT |
| LOW | NAPS2.Lib/Recovery/RecoveryImage.cs | 81 | // _recoveryIndexManager.Index.Images.AddRange(images.Select(x => x.RecoveryIndexImage)); | COMMENT |
| LOW | NAPS2.Lib/Recovery/RecoveryImage.cs | 101 | // } | COMMENT |
| LOW | NAPS2.Lib/Recovery/RecoveryImage.cs | 121 | // IndexImage = new RecoveryIndexImage | COMMENT |
| LOW | NAPS2.Lib/Recovery/RecoveryImage.cs | 141 | // FileName = recoveryIndexImage.FileName; | COMMENT |
| LOW | NAPS2.Lib/Recovery/RecoveryImage.cs | 161 | // if (_recoveryIndexManager != null) | COMMENT |
| LOW | NAPS2.Lib/Recovery/RecoveryImage.cs | 181 | // lock (_recoveryIndexManager) | COMMENT |
| LOW | NAPS2.Lib/Recovery/RecoveryImage.cs | 201 | // _recoveryIndexManager.Save(); | COMMENT |
| LOW | NAPS2.Lib/Ocr/OcrOperationManager.cs | 1 | using System.Threading; | COMMENT |
| LOW | NAPS2.Lib/ImportExport/NameContext.cs | 1 | namespace NAPS2.ImportExport; | COMMENT |
| LOW | NAPS2.Lib/ImportExport/NameContext.cs | 21 | /// The zero-based index of the file within a batch of files. The number in the name is at least BatchIndex + 1, | COMMENT |
| LOW | NAPS2.Lib/ImportExport/OverwriteMode.cs | 1 | namespace NAPS2.ImportExport; | COMMENT |
| LOW | NAPS2.Lib/ImportExport/Numbering.cs | 1 | namespace NAPS2.ImportExport; | COMMENT |
| LOW | NAPS2.Lib/ImportExport/Numbering.cs | 21 | /// if it would otherwise conflict with an existing or reserved file. This is an alternative to prompting the user | COMMENT |
| LOW | NAPS2.Lib/ImportExport/SaveParams.cs | 1 | namespace NAPS2.ImportExport; | COMMENT |
| LOW | NAPS2.Lib/ImportExport/SaveParams.cs | 21 | COMMENT | |
| LOW | NAPS2.Lib/Lang/LanguageNames.Designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | NAPS2.Lib/Lang/Resources/SettingsResources.Designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | NAPS2.Lib/Lang/Resources/MiscResources.Designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | …Lib/Lang/ConsoleResources/ConsoleResources.Designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | NAPS2.Lib/EtoForms/Layout/C.cs | 61 | /// <param name="text"></param> | COMMENT |
| LOW | NAPS2.Lib/EtoForms/Notifications/ISaveNotify.cs | 1 | namespace NAPS2.EtoForms.Notifications; | COMMENT |
| LOW | NAPS2.Escl/Client/EsclServiceLocator.cs | 61 | if (_discovery.Mdns == null) | COMMENT |
| LOW | NAPS2.Escl/Client/EsclService.cs | 21 | COMMENT | |
| LOW | NAPS2.Escl/Client/EsclService.cs | 41 | COMMENT | |
| LOW | NAPS2.Escl/Client/EsclService.cs | 61 | public string? TxtVersion { get; init; } | COMMENT |
| LOW | NAPS2.Escl/Client/EsclService.cs | 81 | public string? Note { get; init; } | COMMENT |
| LOW | NAPS2.Sdk/Images/ProcessedImage.cs | 41 | COMMENT | |
| LOW | NAPS2.Sdk/Images/Deskewer.cs | 1 | using NAPS2.Images.Bitwise; | COMMENT |
| LOW | NAPS2.Sdk/Serialization/SerializeImageOptions.cs | 1 | namespace NAPS2.Serialization; | COMMENT |
| LOW | NAPS2.Sdk/Serialization/SerializeImageOptions.cs | 21 | public bool IncludeThumbnail { get; init; } | COMMENT |
| LOW | NAPS2.Sdk/Ocr/OcrController.cs | 1 | using System.Threading; | COMMENT |
| LOW | NAPS2.Sdk/Ocr/OcrRequestQueue.cs | 41 | /// result. | COMMENT |
| LOW | NAPS2.Sdk/Ocr/TesseractOcrEngine.cs | 21 | /// <summary> | COMMENT |
| LOW | NAPS2.Sdk/Ocr/TesseractOcrEngine.cs | 341 | // { | COMMENT |
| LOW | NAPS2.Sdk/Ocr/TesseractOcrEngine.cs | 361 | // } | COMMENT |
| LOW | NAPS2.Sdk/Ocr/OcrRequestParams.cs | 1 | namespace NAPS2.Ocr; | COMMENT |
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 41 | // document.Info.Title = exportParams.Metadata?.Title; | COMMENT |
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 141 | done++; | COMMENT |
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 161 | // { | COMMENT |
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 181 | // else | COMMENT |
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 201 | // } | COMMENT |
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 221 | // var ocrTask = _scanningContext.OcrRequestQueue.Enqueue( | COMMENT |
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 241 | // { | COMMENT |
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 261 | // bool inTextBlock = false; | COMMENT |
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 281 | // } | COMMENT |
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 301 | // #else | COMMENT |
| 81 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | NAPS2.Lib/ClientCreds-.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | NAPS2.Lib/Icons.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | NAPS2.Lib/ClientCreds_.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | NAPS2.Lib/Lang/LanguageNames.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | NAPS2.Lib/Lang/Resources/UiStrings.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | NAPS2.Lib/Lang/Resources/SettingsResources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | NAPS2.Lib/Lang/Resources/MiscResources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …Lib/Lang/ConsoleResources/ConsoleResources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | NAPS2.Sdk/Lang/Resources/SdkResources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | NAPS2.Lib.Tests/Config/ConfigData.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | NAPS2.Sdk.Tests/ImageResources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | NAPS2.Sdk.Tests/PdfResources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | NAPS2.Sdk.Tests/BinaryResources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | NAPS2.Images/Bitwise/BilateralFilterOp.cs | 224 | // The vectorization implementation is fully AI-generated. Rather than a detailed review, we instead verify its | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | NAPS2.Sdk/Pdf/PdfiumImageExtractor.cs | 56 | // TODO: Add tests for these cases to PdfiumPdfRendererTests | COMMENT |
| LOW | NAPS2.Sdk/Scan/Internal/ScanOptionsValidator.cs | 6 | // TODO: Add tests for this and/or scanperformer | COMMENT |
| LOW | NAPS2.Lib.Tests/Config/ProfileManagerTests.cs | 108 | // TODO: Add tests for LockSystemProfiles etc | COMMENT |
| LOW | NAPS2.Lib.Tests/Images/UiImageTests.cs | 3 | // TODO: Add tests | COMMENT |
| LOW | NAPS2.Lib.Tests/Recovery/RecoveryManagerTests.cs | 252 | // TODO: Add tests for recovery params (i.e. thumbnail) | COMMENT |
| LOW | NAPS2.Lib.Tests/Scan/ScanPerformerTests.cs | 9 | // TODO: Add tests | COMMENT |
| LOW | …S2.Lib.Tests/Automation/CommandLineIntegrationTests.cs | 1482 | // TODO: Add tests for all options, as well as key combinations | COMMENT |
| LOW | NAPS2.Escl.Usb/EsclUsbContext.cs | 69 | // TODO: Handle exceptions | COMMENT |
| LOW | NAPS2.Sdk.Tests/Images/LoadSaveTests.cs | 13 | // TODO: Add tests for error/edge cases (e.g. invalid files, unicode file names) | COMMENT |
| LOW | NAPS2.Sdk.Tests/Images/ImageSerializerTests.cs | 9 | // TODO: Add tests for barcode detection | COMMENT |
| LOW | NAPS2.Sdk.Tests/Images/TransformTests.cs | 259 | // TODO: Add tests for rotating black and white images | COMMENT |
| LOW | NAPS2.Sdk.Tests/Images/TiffWriterTests.cs | 8 | // TODO: Add tests for error/edge cases (e.g. invalid files, mismatched extensions/format (?), tiff progress, saving | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | NAPS2.Lib/EtoForms/Desktop/DesktopController.cs | 303 | // ShowRecoveryPrompt, but designed to be faster and more seamless. This means a few things: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 159 | // // Step 1: Create the pages, draw the images, and start OCR | COMMENT |
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 237 | // // Step 2: Wait for all the OCR results, and draw the text on each page | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 159 | // // Step 1: Create the pages, draw the images, and start OCR | COMMENT |
| LOW | NAPS2.Sdk/Pdf/PdfiumPdfExporter.cs | 237 | // // Step 2: Wait for all the OCR results, and draw the text on each page | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | NAPS2.Images.Gtk/LibTiffStreamClient.cs | 41 | return LibTiff.TIFFClientOpen("placeholder", mode, IntPtr.Zero, | CODE |