Skip to content

Support .errlensrc config and CLI options #83

@naheel0

Description

@naheel0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationenhancementNew feature or requestlow-priorityLow-priority work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions