repowisecyanfish/naps2

Code health of cyanfish/naps2

Repowise scores cyanfish/naps2 at 8.8 out of 10 for code health, which reads as excellent, alongside maintainability 9.1 and static performance 9.9 on the same scale. There are 581 open findings across the three pillars, and the lowest-scoring file is EsclScanDriver.cs at 2.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

17 critical, 100 high, 202 medium, 250 low.

Hotspots

5 files are flagged as hotspots. The top 5:

  • NAPS2.Lib/EtoForms/Ui/CropForm.cs: 5 commits in the last 90 days from 1 contributor
  • NAPS2.Lib/EtoForms/Ui/ManualDuplexForm.cs: 4 commits in the last 90 days from 1 contributor
  • NAPS2.Lib/EtoForms/EtoDialogHelper.cs: 3 commits in the last 90 days from 2 contributors
  • NAPS2.Lib.Mac/EtoForms/Mac/MacEtoPlatform.cs: 5 commits in the last 90 days from 1 contributor with 3 recent bug fixes
  • NAPS2.Lib/EtoForms/Widgets/ManualDuplexListViewBehavior.cs: 3 commits in the last 90 days from 1 contributor

Lowest-scoring files

  • NAPS2.Sdk/Scan/Internal/Escl/EsclScanDriver.cs: 2.0 out of 10
  • NAPS2.Sdk/Scan/Internal/Sane/SaneScanDriver.cs: 2.5 out of 10
  • NAPS2.Lib/EtoForms/Ui/CropForm.cs: 3.1 out of 10
  • NAPS2.Sdk/Scan/Internal/Apple/DeviceOperator.cs: 4.2 out of 10 with 2 bug fixes in the last 180 days
  • NAPS2.Lib/EtoForms/Ui/ChooseDeviceForm.cs: 4.4 out of 10

Checked against bug fixes

Of the 20 files Repowise scores lowest, 5 had a bug fix in the last 180 days. Across all 1,078 scored files, 2.1% had a bug fix in that window.

Dead code and refactoring

Repowise found 203 unused exports. 38 refactoring targets across 38 files would raise the score.

More on naps2: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language