lintai
v0.1.3
Published
AI-powered code review CLI using Gemini
Downloads
336
Maintainers
Readme
lintai
AI-powered code review CLI using Google Gemini. Reviews source files and git diffs for security vulnerabilities, code quality issues, and performance problems.
Install
npm install -g lintaiRequires Node.js >= 20 and a Gemini API key:
export GEMINI_API_KEY=your-key-hereUsage
Review files or directories
lintai review src/index.ts
lintai review src/
lintai review . --type security --severity criticalReview git diffs
lintai diff # unstaged changes
lintai diff --staged # staged changes only
lintai diff HEAD~3 # last 3 commits
lintai diff main # diff against main branchOptions
| Option | Description |
|--------|-------------|
| --type <type> | Review type: security, quality, performance, full (default: full) |
| --severity <level> | Minimum severity: critical, warning, info, suggestion |
| --strict | Show all findings including low confidence |
| --quiet | Show only critical severity findings |
| --format <format> | Output format: text, json, sarif (default: text) |
| --no-cache | Bypass review cache |
| --rpm <number> | API requests per minute limit |
Configuration
Generate a .reviewrc.json config file:
lintai initConfig is resolved in order: defaults < global (~/.reviewrc.json) < project (.reviewrc.json) < CLI flags.
{
"type": "full",
"severity": "warning",
"format": "text",
"cache": true,
"ignore": ["dist/", "*.min.js"]
}License
MIT
