proselint icon indicating copy to clipboard operation
proselint copied to clipboard

Ignored check names mismatched

Open adamchainz opened this issue 1 year ago • 2 comments

I want to ignore leonard.exclamation.30ppm, which I tried to do by following the configuration docs, setting up my config file with:

{
    "checks": {
        "leonard.exclamation.30ppm": false
    }
}

But this does not work, the rule still appears:

$ proselint example.md
example.md:1:3: leonard.exclamation.30ppm More than 30 ppm of exclamations. Keep them under control.

After inspecting the code and seeing the rule lives in proselint.checks.typography.exclamation, I tried:

{
    "checks": {
        "typography.exclamation": false
    }
}

That does work:

$ proselint example.md

This seems like a bug since the config docs don't explain such a distinction.

It's also unfortunate that it seems you can only disable all the rules within a module - e.g. in this case I'd like to keep leonard.exclamation.multiple active.

adamchainz avatar Feb 01 '23 09:02 adamchainz