Code health of aws/aws-emulator
Repowise scores aws/aws-emulator at 8.5 out of 10 for code health, which reads as excellent, alongside maintainability 8.2 and static performance 9.9 on the same scale. There are 76,371 open findings across the three pillars, and the lowest-scoring file is instances_and_filters.rs at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
1,693 critical, 8,168 high, 16,673 medium, 49,837 low.
Hotspots
45 files are flagged as hotspots. The top 5:
- services/service-com-amazonaws-apigatewayv2-apigatewayv2/src/service/websocket/transport.rs: 3 commits in the last 90 days from 1 contributor with 4 recent bug fixes
- services/service-com-amazonaws-paymentcryptography-paymentcryptographycontrolplane/tests/all/validation_refusal_message.rs: 4 commits in the last 90 days from 1 contributor with 3 recent bug fixes
- core/router/tests/all.rs: 32 commits in the last 90 days from 1 contributor with 21 recent bug fixes
- services/service-com-amazonaws-dynamodb-dynamodb-20120810/src/state.rs: 3 commits in the last 90 days from 1 contributor with 4 recent bug fixes
- services/service-com-amazonaws-apigatewayv2-apigatewayv2/src/service/invoke/request_metrics.rs: 3 commits in the last 90 days from 1 contributor with 3 recent bug fixes
Lowest-scoring files
- services/service-com-amazonaws-ec2-amazonec2/src/state/instances_and_filters.rs: 1.0 out of 10 with 5 bug fixes in the last 180 days
- services/service-com-amazonaws-cloudformation-cloudformation/src/state/provisioning.rs: 1.0 out of 10 with 7 bug fixes in the last 180 days
- services/service-com-amazonaws-ecs-amazonec2containerservicev20141113/src/state/store.rs: 1.0 out of 10 with 2 bug fixes in the last 180 days
- services/service-com-amazonaws-cloudformation-cloudformation/src/state/template.rs: 1.0 out of 10 with 6 bug fixes in the last 180 days
- services/service-com-amazonaws-batch-awsbatchv20160810/src/state.rs: 1.6 out of 10
Checked against bug fixes
Of the 20 files Repowise scores lowest, 18 had a bug fix in the last 180 days. Across all 60,873 scored files, 3.3% had a bug fix in that window.
Dead code and refactoring
Repowise found 39,414 unused exports. 6,529 refactoring targets across 6,529 files would raise the score.
More on aws-emulator: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language