/lint — Run Linters and Static Analysis
Run code quality checks and report results.
Steps
- •Determine scope:
- •
/lint→make lint(all files) - •
/lint [file or directory]→ lint specific files
- •
- •Run the linter
- •Report results grouped by severity
Output Format
code
Lint Results: - Errors: [N] (must fix) - Warnings: [N] (should fix) - Info: [N] (optional)
For Each Issue
code
[severity] [file:line] [rule-id] — [message]
Auto-Fix Mode
- •If the user says
/lint fixor/lint --fix, runmake formatfirst, thenmake lint - •Report what was auto-fixed and what remains
Grouping
Group issues by file, then by severity within each file. Show the most critical issues first.