Title: Support .errlensrc config and CLI options
Problem
Users cannot customize defaults like language, fuzzy threshold, or disabled patterns.
Proposed change
Implement a config discovery system that reads .errlensrc.json from the project root or user home, and allow CLI flags to override settings.
Files to change
bin/index.js (read rc and merge with CLI flags)
- add
lib/config.js to handle discovery and merging
Tasks
- Implement rc discovery (project cwd → user home → defaults)
- Support keys:
lang, threshold, maxResults, disabledPatterns, plugins.
- Merge CLI flags, environment variables, and rc with precedence: CLI > env > rc > defaults.
- Document options in README.
Acceptance criteria
errlens analyze --threshold 0.3 overrides .errlensrc.json.
--lang and rc work as expected.
Labels: enhancement, low-priority
Title: Support
.errlensrcconfig and CLI optionsProblem
Users cannot customize defaults like language, fuzzy threshold, or disabled patterns.
Proposed change
Implement a config discovery system that reads
.errlensrc.jsonfrom the project root or user home, and allow CLI flags to override settings.Files to change
bin/index.js(read rc and merge with CLI flags)lib/config.jsto handle discovery and mergingTasks
lang,threshold,maxResults,disabledPatterns,plugins.Acceptance criteria
errlens analyze --threshold 0.3overrides.errlensrc.json.--langand rc work as expected.Labels: enhancement, low-priority