harper icon indicating copy to clipboard operation
harper copied to clipboard

feat: Ignorable `Matcher` triggers

Open grantlemons opened this issue 2 years ago • 2 comments

Root Cause of: #243, #287

The Matcher (harper-core/src/linting/matcher.rs) linter recommends replacements in very specific cases. Unfortunately it has some problems. One of these is that the recommendations cannot be ignored without disabling the lint rule entirely.

I think it would be good to create a more granular configuration for Matcher, so users can enable and disable different recommendations as the choose, but the key thing in my eyes is that users should be able to ignore these, as the fact these behave a lot like spelling suggestions leads users to expect them to be able to interact with them as they would a spelling suggestion.

grantlemons avatar Nov 28 '24 00:11 grantlemons

I believe the real solution is to refactor the various ideas presented in the Matcher into individual linters (which can be enabled/disabled).

This commit is a good example of what I mean.

elijah-potter avatar Jan 03 '25 18:01 elijah-potter

This has been completed for quite a while now.

elijah-potter avatar Jun 18 '25 18:06 elijah-potter