| name | Self-Review |
| description | Review your own changes before committing or creating a pull request |
Self-Review
Review your own changes before committing or creating a pull request.
When to Use
- Before committing significant changes
- Before creating a pull request
- After implementing a feature or fix
- When you want to catch issues before code review
Steps
-
Review the diff
- Run
git diff to see all changes
- Check each file for unintended modifications
- Look for debugging code or console.logs to remove
-
Code quality check
- Are variable and function names clear?
- Is the code readable and well-organized?
- Are there any code smells or anti-patterns?
- Is error handling appropriate?
-
Logic verification
- Does the code do what it's supposed to?
- Are edge cases handled?
- Are there any potential bugs or race conditions?
-
Test coverage
- Are there tests for new functionality?
- Do existing tests still pass?
- Are error cases tested?
-
Documentation
- Are complex sections commented?
- Is public API documented?
- Are any README updates needed?
-
Security check
- No hardcoded secrets or credentials?
- Input validation present where needed?
- No SQL injection or XSS vulnerabilities?
-
Performance consideration
- Any obvious performance issues?
- Unnecessary loops or API calls?
- Large data structures handled efficiently?
Checklist
Notes
- Take your time - catching issues now saves review cycles
- If unsure about something, ask before committing
- It's okay to split large changes into multiple commits