CodePulse
Instant, safe code-quality fixes for Python, JavaScript/TypeScript, and Java — right in VS Code.
CodePulse detects 36 rule violations, auto-fixes the safe ones, and flags the rest with
severity-coloured underlines. No config required. Works on save.
Features
|
|
| Auto-fix on save |
Fixes applied automatically when you save a supported file |
| Diff preview |
Cmd/Ctrl+Shift+D — see exactly what will change before applying |
| Severity colours |
🔴 CRITICAL (red) · 🟡 WARNING (yellow) · 🔵 INFO (blue) underlines |
| 36 rules |
Python · JS/TypeScript · Java — see Rule Catalog |
| Rule suppression |
# codepulse: ignore[P-ID-01] to suppress on one line |
| Per-project config |
.codepulserc to disable rules or override severities |
| Project scan |
Scan all files at once with a health score |
Quick Start
- Install this extension from the Marketplace.
- Open Settings (
Cmd/Ctrl+,) and set codepulse.apiUrl to your deployed API URL:
https://w8x4g4lbd7.execute-api.eu-north-1.amazonaws.com
- Open a
.py, .ts, .js, or .java file and save — CodePulse runs automatically.
Commands
| Command |
Shortcut |
Description |
CodePulse: Fix current file |
Ctrl+Shift+P / Cmd+Shift+P |
Apply all safe auto-fixes |
CodePulse: Preview fixes (diff view) |
Ctrl+Shift+D / Cmd+Shift+D |
Show diff before applying |
CodePulse: Scan Project |
Command Palette |
Scan all files, show health score |
CodePulse: Extract Secrets |
Command Palette |
Move hardcoded secrets to .env |
CodePulse: Check API Contracts |
Command Palette |
Detect route/method drift |
Right-click any supported file or folder to access these from the context menu.
Supported Languages & Rules
Python (18 rules)
P-EX-01 Bare except clause
P-ID-01 == None → is None
P-PY-02 datetime.now() without timezone
P-PY-01 assert in production code
P-MD-01 Mutable default arguments
P-IO-01 File open without with
P-NM-01 Magic numbers
- … and 11 more — see Rule Catalog
JavaScript / TypeScript (12 rules)
JS-EQ-01 == coercion → ===
JS-PR-01 parseInt without radix
JS-NEW-04 @ts-ignore abuse
JS-NEW-06 Exported functions missing return types
- … and 8 more
Java (12 rules)
JV-EQ-01 == on String
JV-EX-01 Empty catch block
JV-NEW-06 new BigDecimal(double)
JV-NEW-03 synchronized on non-final field
- … and 8 more
Configuration
// settings.json
{
"codepulse.apiUrl": "https://your-api-url.amazonaws.com",
"codepulse.enableOnSave": true,
"codepulse.rules": {
"P-ST-07": "off", // disable long-function warning
"P-CF-01": "info" // downgrade to INFO
}
}
Or use a .codepulserc file in your project root:
{
"rules": {
"P-ST-07": "off",
"P-CF-01": "info"
},
"ignorePatterns": ["migrations/", "generated/"]
}
Rule Suppression
Suppress on a single line:
return datetime.now() # codepulse: ignore[P-PY-02]
Suppress all rules on a line:
assert user is not None # codepulse: ignore
Requirements
- VS Code 1.95+
- A deployed CodePulse API (or self-host — see CONTRIBUTING.md)
Privacy
CodePulse processes source code in-memory inside AWS Lambda (eu-north-1).
No source code is stored, logged, or retained after the response returns.
Links
Release Notes
0.2.0
- 36 rules across Python, JS/TypeScript, Java
- Severity-coloured diagnostics (CRITICAL/WARNING/INFO)
- Diff preview before applying fixes (
codepulse.previewFix)
- Rule suppression with
# codepulse: ignore
- Per-project
.codepulserc configuration
- Keybindings and right-click context menu
- Project-wide scan with health score
0.1.0
- Initial release: Python auto-fix on save