Skip to content

Malformed disabledRules shape is silently ignored #22

Description

@royalpinto007

Problem

{"disabledRules": "MCP001"} (string instead of array) is silently ignored and all rules run. A user who thinks they disabled a rule gets a false sense of coverage.

Where

src/config.ts (normalizeConfig: only handles Array.isArray(obj.disabledRules)).

Acceptance

Add a failing test first asserting normalizeConfig({disabledRules: "MCP001"}) throws. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions