Skip to content

Malformed disabledRules shape is silently ignored #22

Closed

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

  1. royalpinto007 commented on Sep 23, 2026

    @royalpinto007
    MemberAuthor

    Closing as completed: PR #51 landed the fix — non-array disabledRules now throws instead of being silently ignored, with a regression test.

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