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

[#1067] Handle Elvis config errors #1088

Merged
merged 2 commits into from
Sep 20, 2021
Merged

Conversation

robertoaloi
Copy link
Member

Description

In case of an issue with the elvis.config (e.g. when using an undefined rule), the Elvis backend crashes instead of reporting a regular diagnostic. This PR ensures that config errors are also displayed to the user as Diagnostics. We should probably add diagnostics for the elvis.config file itself, but this should be an improvement. Since config errors do not correspond to a specific line in the open buffer, I'm arbitrarily reporting them on line 1.

@robertoaloi robertoaloi merged commit 6d591a4 into main Sep 20, 2021
@robertoaloi robertoaloi deleted the 1067-handle-elvis-config-errors branch September 20, 2021 11:38
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.

1 participant