ci: add weeder check for unused code detection#243
ci: add weeder check for unused code detection#243tonyalaribe wants to merge 2 commits intomasterfrom
Conversation
Code Review - PR #243: CI Weeder CheckSummaryThis PR adds weeder (unused code detection) to the CI pipeline. The implementation is solid overall, with good caching strategy and proper artifact management. ✅ Strengths
🔧 Suggested Improvements1. Reduce artifact size (Performance)Uploading entire - name: Upload build artifacts for weeder
uses: actions/upload-artifact@v4
with:
name: weeder-artifacts
path: |
.hiefiles
dist-newstyle/**/*.conf
retention-days: 1Then combine downloads: - name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: weeder-artifactsImpact: Faster upload/download, less storage, reduced CI time. 2. Consolidate GHC options (Code Quality)Line 72 duplicates GHC options from line 66. Use single build command - the 3. Add validation (Reliability)Add check before running weeder: - name: Run weeder
run: |
if [ ! -d ".hiefiles" ]; then
echo "Error: HIE files not found"
exit 1
fi
~/.local/bin/weeder --config config/weeder.toml4. Minor: PATH vs absolute path (Code Style)Instead of - name: Run weeder
run: |
export PATH="$HOME/.local/bin:$PATH"
weeder --config config/weeder.toml📊 Test Coverage
🔒 Security
📝 Other Notes
Overall: Good implementation. Main suggestion is reducing artifact size for better performance. Ready to merge with or without suggested improvements. |
Code Review: Weeder CI IntegrationSummaryThis PR adds weeder integration to detect unused code in CI. Good initiative for code quality. Issues & RecommendationsCritical: Artifact Upload Size 🔴Lines 74-81: Uploading entire
Redundant Validation
|
Closes #
How to test
Checklist