-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add IDE analyzer for invalid .editorconfig files #19055
Comments
Sadly, this editorconfig work isn't going to fit for 15.3, but we're going to continue targeting the next foundation update. |
👍 on this. I have hit multiple issues now (typos, forgetting to add the capitalization option for a naming style, etc). Not getting any output indicating this badness and having to debug into this is a major pain. |
This should be added for naming styles if for no other reason. |
@sharwell @mavasani @CyrusNajmabadi My initial thoughts on this is it will be divided into two parts:
What do you think on that? |
I was initially all for this, but now that VS2022 comes with a GUI-based Even when my Given this, then I if my I guess the main use case would be that if I edited my |
Ah, NVM, I just found #53120, so it sounds like this analyzer is still relevant 🙂 |
There is also a need to include check for conflicts and duplicate entries, the current GUI adds missing entries that duplicate dedicated entries below. I entered as separate issue on that and the fact that it adds missing entries that can conflict. |
This is caused by #59325. The UI is expected to only ever add items that the user has changed. |
Here's a case where the same property was defined multiple times, but the user was not aware: |
Version Used: N/A
Steps to Reproduce:
Add an invalid .editorconfig (cannot be parsed).
Expected Behavior:
A warning appears in the IDE that the .editorconfig file is ignored due to errors parsing it.
This error cannot occur during builds (compat issue), so it needs to be an IDE analyzer only.
The text was updated successfully, but these errors were encountered: