Skip to content

Conversation

@19mdavenport
Copy link
Contributor

Currently, if someone has nested duplicate blocks in their code, both are reported as duplicates. This seems unnecessary to me and potentially confusing for the students. This removes that by stopping checking any ast tokens nested inside a ast token that has already been reported as a duplicate.

@19mdavenport 19mdavenport requested a review from a team February 7, 2025 21:36
Copy link

@frozenfrank frozenfrank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job adding test cases to verify the new behavior! This looks like a really simple and clean solution that creates a desirable behavior.

@19mdavenport 19mdavenport merged commit 120ac7a into main Feb 11, 2025
1 check passed
@19mdavenport 19mdavenport deleted the remove-duplicate-duplicate-reports branch February 11, 2025 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants