The ruleset editor is very useful for example when disabling an entire category. This is useful when disabling StyleCop documentation analyzers in test projects for example.
As I understand this is covered by https://github.com/madskristensen/EditorConfigLanguage/ but not yet for rules.
@madskristensen right?
@xperiandri No, the repo you linked provides the language service only and no other UI for dealing with .editorconfig files.
@JohanLarsson You can now do this operation with a single .editorconfig entry, see https://github.com/dotnet/roslyn/pull/38886#issue-321838740
Tagging @mikadumont for the more generic request for a UI over .editorconfig.
NOTE: You can find a rule's category by looking at the "Category" column in error list, which is hidden by default.
Looks like the category column shows something else.
@sharwell you want to fix this in StyleCop analyzers to have the correct category?
Pretty sure StyleCop
does it right. I think the bug is in the error list UI.
Ah, I didn鈥檛 notice your diagnostics were from build, not Intellisense. Unfortunately, the diagnostics shown from explicit build cannot find the category as the build output does not have this data. Switching to Build + Intellisense should show the correct values.
For transparency, we've discussed the option of an editorconfig UI a few times internally. While no decisions have been made, there are two important recurring themes:
Shows up in search for editor config in the ctrl+q search.
Additional Features:
Notes from today's design meeting (7/13):
It was determined that we need a more complete proposal. Some questions to be answered:
Three sections:
| Description | Preference |
|:------------|:-----------|
| | |
Columns:
| Description | Preference | Severity |
|:------------|:-----------|:---------|
| | | |
| Reoder | Specification | Required Style | Severity | (Remove) |
|:-------|:--------------|:---------------|:---------|:---------|
| | | | | |
| ID | Description | Severity |
|:---|:------------|:---------|
| | | |
Side note:
RuleSet designer resets comments in ruleset file. Editorconfig designer should preserve them.
Most helpful comment
Editorconfig UI Proposal
Entry points
View -> Other Windows
Analyzer Project Node in Solution Explorer
Right click in .editorconfig file
Ctrl+Q Search
Shows up in search for editor config in the ctrl+q search.
Features
Minimum UI Proposal
Maximal UI Proposal
Additional Features: