| 1 | #!/bin/bash |
| 2 | # Batch fix MANUAL_REVIEW items across all auto-generated YAML files |
| 3 | |
| 4 | cd "$(dirname "$0")/.." || exit 1 |
| 5 | |
| 6 | echo "=====================================================" |
| 7 | echo " Batch Fixing MANUAL_REVIEW Items" |
| 8 | echo "=====================================================" |
| 9 | echo "" |
| 10 | |
| 11 | FILES=( |
| 12 | "posix_untested_auto.yaml" |
| 13 | "posix_extended_auto.yaml" |
| 14 | "posix_basic_auto.yaml" |
| 15 | "posix_gaps_auto.yaml" |
| 16 | "posix_advanced_auto.yaml" |
| 17 | "posix_coverage_auto.yaml" |
| 18 | ) |
| 19 | |
| 20 | TOTAL_BEFORE=0 |
| 21 | TOTAL_AFTER=0 |
| 22 | TOTAL_FIXED=0 |
| 23 | |
| 24 | for file in "${FILES[@]}"; do |
| 25 | filepath="test_specs/$file" |
| 26 | |
| 27 | if [ ! -f "$filepath" ]; then |
| 28 | echo "⚠️ Skipping $file (not found)" |
| 29 | continue |
| 30 | fi |
| 31 | |
| 32 | echo "Processing: $file" |
| 33 | echo "----------------------------------------" |
| 34 | |
| 35 | # Run the fixer with --use-shell for maximum auto-fixing |
| 36 | .venv/bin/python utils/fix_manual_review.py "$filepath" --use-shell |
| 37 | |
| 38 | echo "" |
| 39 | done |
| 40 | |
| 41 | echo "=====================================================" |
| 42 | echo " Batch Fix Complete!" |
| 43 | echo "=====================================================" |
| 44 | echo "" |
| 45 | echo "Next: Run validation to measure improvement" |