This directory contains scripts to help ensure code quality before creating Pull Requests.
Comprehensive validation script that runs all checks before creating/merging a PR.
# Check against develop branch (default)
bash .scripts/pre-pr-check.sh
# Check against specific branch
bash .scripts/pre-pr-check.sh master- ✅ Prettier formatting
- ✅ ESLint errors and warnings
- ✅ Frontend unit tests
- ✅ Backend tests (if Java files changed)
⚠️ Common CodeQL issues (non-strict equality comparisons)⚠️ Unused variables/imports⚠️ Debug statements (console.log, debugger)⚠️ TODO/FIXME comments⚠️ Error handling patterns
0- All checks passed (warnings are acceptable)1- Errors found, must be fixed before PR
Use before creating PR:
npm run pre-pr-checkOr integrate into your workflow:
# Before PR
git checkout feature/my-feature
npm run pre-pr-check
# Fix any errors, then create PR