@TheTechMargin - Quality Code Standards
📝 Pre-Commit Checklist
Use this checklist for every code change before pushing to production.
🔐 Security & Vulnerability Checks
Authentication & Authorization
- [ ] No hardcoded API keys, passwords, or secrets in code
- [ ] Environment variables used for all sensitive configuration
- [ ] User input validation implemented (sanitize all inputs)
- [ ] SQL injection prevention (parameterized queries/ORMs)
- [ ] XSS protection implemented (proper output encoding)
- [ ] CSRF tokens implemented for state-changing operations
- [ ] Authentication checks on all protected routes/functions
- [ ] Authorization levels properly enforced
Data Security
- [ ] Sensitive data encrypted at rest and in transit
- [ ] No sensitive information in logs
- [ ] Personal data handling complies with GDPR/privacy laws
- [ ] Secure headers implemented (HSTS, CSP, X-Frame-Options)
- [ ] HTTPS enforced in production environments