Code health of causalens/dara
Repowise scores causalens/dara at 8.4 out of 10 for code health, which reads as good, alongside maintainability 9.0 and static performance 9.8 on the same scale. There are 942 open findings across the three pillars, and the lowest-scoring file is routes.py at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
65 critical, 185 high, 325 medium, 347 low.
Hotspots
33 files are flagged as hotspots. The top 5:
- packages/dara-core/tests/python/test_oidc_auth.py: 4 commits in the last 90 days from 1 contributor with 4 recent bug fixes
- packages/dara-core/dara/core/auth/oidc/config.py: 3 commits in the last 90 days from 1 contributor with 3 recent bug fixes
- packages/dara-core/tests/python/test_auth.py: 4 commits in the last 90 days from 1 contributor with 3 recent bug fixes
- packages/dara-core/tests/js/use-stream-variable.spec.tsx: 3 commits in the last 90 days from 2 contributors with 2 recent bug fixes
- packages/dara-core/tests/python/test_stream_variable.py: 4 commits in the last 90 days from 2 contributors with 2 recent bug fixes
Lowest-scoring files
- packages/dara-core/dara/core/auth/routes.py: 1.0 out of 10 with 5 bug fixes in the last 180 days
- packages/dara-core/js/shared/interactivity/derived-variable.tsx: 1.0 out of 10 with 1 bug fix in the last 180 days
- packages/dara-core/js/shared/interactivity/use-action.tsx: 1.4 out of 10
- packages/dara-core/dara/core/interactivity/any_variable.py: 1.4 out of 10 with 1 bug fix in the last 180 days
- packages/dara-core/js/shared/interactivity/stream-variable.tsx: 1.5 out of 10 with 1 bug fix in the last 180 days
Checked against bug fixes
Of the 20 files Repowise scores lowest, 11 had a bug fix in the last 180 days. Across all 3,207 scored files, 2.7% had a bug fix in that window.
Dead code and refactoring
Repowise found 417 unused exports. 75 refactoring targets across 75 files would raise the score.
More on dara: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language