fix: find clashing linter names when part of merged linter#3244
Open
hippietrail wants to merge 10 commits into
Open
fix: find clashing linter names when part of merged linter#3244hippietrail wants to merge 10 commits into
hippietrail wants to merge 10 commits into
Conversation
Collaborator
Author
|
The initial version of the PR didn't find clashes when a merged linter contained merged linters, as is the case with |
Collaborator
Author
|
I keep finding a surprising number of edge cases that make the code more complex. Turning it into a draft while I continue to work through it all. |
…st linter name clash
…d-clashing-merged-linter-names-3241
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues
Closes #3241
Description
🚨 NOTE: THE CI IS EXPECTED TO FAIL AS THIS PR FINDS A CLASHING LINTER NAME!! 🚨
It was found by accident that the name of a standalone linter is the same as one of the component linters that make up a merged linter. The previous code that found clashing linter names did not pick up on this. Probably due to expecting that merged linters used
LintGroups, which is not the case.After trying several ways to attack this using the Windsurf built-in AI I was able to learn enough to see a much more minimal solution. The AI then implemented it the way I suggested. I then simplified the code, renamed some variables, and went over every line manually.
I then discovered that the code only went one level deep and did not cover when a merged linter is composed of other merged linters.
I then iterated between the AI trying code to handle this, me reworking its code, getting it to check my code, etc. So it very much warrants being critiqued by a human who understands this part of the codebase.
Demo
How Has This Been Tested?
Manually.
Checklist