Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): infinite lint loops #390

Merged
merged 2 commits into from
Jan 21, 2025
Merged

fix(core): infinite lint loops #390

merged 2 commits into from
Jan 21, 2025

Conversation

elijah-potter
Copy link
Collaborator

@elijah-potter elijah-potter commented Jan 15, 2025

We solved #225, but the rule we created had an issue that resulted in an infinite loop. One would "fix" a problem, but the fix would create another problem that the same rule would pick up.

This demonstrated a hole in our testing tools, which this PR aims to fill. By checking to make sure all invocations of assert_suggestion result create no new lints, we can cut down on this kind of error significantly.

By doing this in fact, we also found a bug in #376.

@elijah-potter elijah-potter added bug Something isn't working rust Pull requests that update Rust code harper-core linting labels Jan 15, 2025
@elijah-potter elijah-potter merged commit 4d8b80e into master Jan 21, 2025
17 checks passed
@elijah-potter elijah-potter deleted the infinite-lint-loops branch January 21, 2025 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working harper-core linting rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant