repowisedatacontract/datacontract-cli

Code health of datacontract/datacontract-cli

Repowise scores datacontract/datacontract-cli at 6.2 out of 10 for code health, which reads as fair, alongside maintainability 7.3 and static performance 9.7 on the same scale. There are 1,791 open findings across the three pillars, and the lowest-scoring file is sodacl_check_builder.py at 1.9. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

122 critical, 334 high, 607 medium, 536 low.

Hotspots

40 files are flagged as hotspots. The top 5:

  • datacontract/integration/dbt_sync.py: 10 commits in the last 90 days from 4 contributors with 3 recent bug fixes
  • datacontract/engines/ibis/connections/connect.py: 23 commits in the last 90 days from 8 contributors with 10 recent bug fixes
  • datacontract/engines/ibis/ibis_check_execute.py: 23 commits in the last 90 days from 10 contributors with 9 recent bug fixes
  • datacontract/api.py: 17 commits in the last 90 days from 5 contributors with 6 recent bug fixes
  • datacontract/lint/resolve.py: 11 commits in the last 90 days from 7 contributors with 6 recent bug fixes

Lowest-scoring files

  • datacontract/export/sodacl_check_builder.py: 1.9 out of 10 with 2 bug fixes in the last 180 days
  • datacontract/export/excel_exporter.py: 2.0 out of 10
  • datacontract/engines/ibis/ibis_check_execute.py: 2.0 out of 10 with 9 bug fixes in the last 180 days
  • datacontract/integration/dbt_sync.py: 2.0 out of 10 with 3 bug fixes in the last 180 days
  • datacontract/imports/excel_importer.py: 2.0 out of 10 with 1 bug fix in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 16 had a bug fix in the last 180 days. Across all 391 scored files, 39.6% had a bug fix in that window.

Dead code and refactoring

Repowise found 37 unused exports. 73 refactoring targets across 73 files would raise the score.

More on datacontract-cli: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language