Code health of apache/airflow
Repowise scores apache/airflow at 6.9 out of 10 for code health, which reads as fair, alongside maintainability 7.7 and static performance 9.7 on the same scale. There are 16,004 open findings across the three pillars, and the lowest-scoring file is scheduler_job_runner.py at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
807 critical, 2,177 high, 4,779 medium, 7,115 low.
Hotspots
683 files are flagged as hotspots. The top 5:
- airflow-core/tests/unit/jobs/test_scheduler_job.py: 37 commits in the last 90 days from 54 contributors with 17 recent bug fixes
- airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts: 51 commits in the last 90 days from 67 contributors with 7 recent bug fixes
- airflow-core/src/airflow/jobs/scheduler_job_runner.py: 41 commits in the last 90 days from 65 contributors with 20 recent bug fixes
- task-sdk/tests/task_sdk/execution_time/test_task_runner.py: 29 commits in the last 90 days from 41 contributors with 4 recent bug fixes
- airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts: 76 commits in the last 90 days from 86 contributors with 11 recent bug fixes
Lowest-scoring files
- airflow-core/src/airflow/jobs/scheduler_job_runner.py: 1.0 out of 10 with 20 bug fixes in the last 180 days
- airflow-core/src/airflow/jobs/triggerer_job_runner.py: 1.0 out of 10 with 7 bug fixes in the last 180 days
- dev/breeze/src/airflow_breeze/utils/confirm.py: 1.0 out of 10 with 2 bug fixes in the last 180 days
- task-sdk/src/airflow/sdk/coordinators/_subprocess.py: 1.0 out of 10 with 3 bug fixes in the last 180 days
- dev/breeze/src/airflow_breeze/utils/run_tests.py: 1.0 out of 10 with 1 bug fix in the last 180 days
Checked against bug fixes
Of the 20 files Repowise scores lowest, 20 had a bug fix in the last 180 days. Across all 10,273 scored files, 12.3% had a bug fix in that window.
Dead code and refactoring
Repowise found 575 unused exports. 688 refactoring targets across 688 files would raise the score.
More on airflow: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language