fix: warn about clashing linter names#2374
fix: warn about clashing linter names#2374hippietrail wants to merge 6 commits intoAutomattic:masterfrom
Conversation
elijah-potter
left a comment
There was a problem hiding this comment.
I like the idea, but I don't love having these methods do IO of any kind. Would it be possible to refactor this into a test case on the curated LintGroup?
Putting this straight in my inbox for today! |
I made it a test by adding an I took the opportunity to refactor the curated linter constructor too by adding new macros to add linters that use either a dialect or dictionary. But not for I did not remove any of the three clashing Until then this PR will show up as failing of course! |
…nter-clash-2343
Issues
Resolves #2343
Description
In fact this finds 3 pairs of clashing linters already!
Intact- one inClosedCompounds, the other inphrase_corrections.Nobody- one inClosedCompounds, the other standalone.OfCourse- one standalone, the other inphrase_corrections.I have intentionally not tried to resolve any of these as part of this PR.
I included another warning in this PR related to linters:
harper-cli lintif after processing any--onlyand/or--ignorecommandline arguments there are no lints configured, a warning will be issued. This is most commonly the result of making a typo when testing a new linter you're working on.How Has This Been Tested?
Manually.
Checklist