repowiseopenfheorg/openfhe-development

Code health of openfheorg/openfhe-development

Repowise scores openfheorg/openfhe-development at 6.7 out of 10 for code health, which reads as fair, alongside maintainability 7.9 and static performance 10.0 on the same scale. There are 971 open findings across the three pillars, and the lowest-scoring file is dcrtpoly-impl.h at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

56 critical, 207 high, 378 medium, 302 low.

Lowest-scoring files

  • src/core/include/lattice/hal/default/dcrtpoly-impl.h: 1.0 out of 10 with 2 bug fixes in the last 180 days
  • src/pke/include/schemerns/rns-cryptoparameters.h: 1.1 out of 10 with 1 bug fix in the last 180 days
  • src/pke/include/cryptocontext.h: 1.9 out of 10
  • src/pke/lib/scheme/ckksrns/ckksrns-utils.cpp: 2.1 out of 10
  • src/pke/lib/scheme/bfvrns/bfvrns-leveledshe.cpp: 2.1 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 569 scored files, 1.8% had a bug fix in that window.

Dead code and refactoring

Repowise found 54 unused exports. 4 refactoring targets across 4 files would raise the score.

More on openfhe-development: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language