Code Review
Learn how to use Tabnine CLI for effective code review.
Basic Code Review
Review a Single File
tabnineThen:
> Review @src/auth/login.ts and suggest improvements1
What Tabnine CLI does
Reads the file
Analyzes code structure
Checks for issues
Suggests improvements
Provides specific recommendations
2
Example Output
AI: I've reviewed @src/auth/login.ts. Here are my findings:
✓ Good Practices:
- Proper async/await usage
- Input validation present
⚠️ Suggestions:
1. Security: Line 45
Add password strength validation
2. Error Handling: Line 67
Use custom error types
3. Code Quality: Line 89
Extract magic number to constant
Would you like me to make these changes?Review Multiple Files
> Review all TypeScript files in @src/auth/ and check for:
> - Security vulnerabilities
> - Error handling
> - Missing documentationReview Recent Changes
> Review the changes I made to @src/api/users.tsUsing Remote Code Search
Find related code for better context:
Using Coaching Guidelines
Get best practices applied:
Security Audit
Example Output:
Performance Review
Automation Examples
Pre-Commit Review
Create review.sh:
CI/CD Integration
GitHub Actions:
Best Practices
1
Be Specific
❌ "Review my code" ✅ "Review @src/auth.ts for security vulnerabilities and error handling"
2
Provide Context
3
Use Multiple Tools
4
Ask Follow-ups
Common Review Patterns
Before Merging
After Refactoring
For New Code
Next Steps
Remote Code Search - Search large codebases
Coaching Guidelines - Get best practices
Quick Start - Learn more
Getting Help
FAQ - Common questions
Troubleshooting - Solve problems
In-App: Type
/helpor/bug
Last updated
Was this helpful?
