Validate Code
Run all validation checks on the codebase.
Steps
- •Run
make validate-allwhich includes:- •
make lint- ESLint checks - •
make format- Prettier formatting check - •
make type-check- TypeScript type checking - •
make security-scan- Security vulnerability scan - •
make test- Runs unit tests using Vitest
- •
- •If the user requests to report test coverage, run:
make coverage - •If any checks fail, but report shows some issues are fixable, always attempt the automatic fix before applying fixes yourself.
- •For lint errors: Run
make lint FIX=1 - •For format errors: Run
make format FIX=1 - •For security issues ONLY with non-breaking changes: Run
make security-fixto review and address vulnerabilities in the same run.
- •For lint errors: Run
- •Report the results and any issues that need attention