Repository navigation
Move some severity configurations to globalconfig - #65274
Conversation
a14de84 to
8715275
Compare
8715275 to
d238f2e
Compare
|
@Youssef1313 can you add a description? What is this PR supposed to accomplish? |
Use of globalconfigs was something recommended by @sharwell as being more efficient (see dotnet/aspnetcore#30138 (comment)), I don't know why it is more efficient though. |
| # dotnet_style_allow_statement_immediately_after_block_experimental | ||
| dotnet_diagnostic.IDE2003.severity = warning |
There was a problem hiding this comment.
This has no effect 😕
The corresponding code-style option default value is true which means "disable the analyzer":
I guess it's not intentional, @CyrusNajmabadi ?
We'll need that answered :). |
|
Marking as draft pending a more complete description of what this solves. |
|
@sharwell Can you advise here? |
|
.globalconfig only needs to be evaluated once for a project, while .editorconfig needs to be evaluated for each document (in practice it behaves better than a complete evaluation for each document). @mavasani can describe what optimizations are applied regarding enabling/disabling analyzers when the configuration is provided for the entire project. |
|
@333fred Should this be ready to merge? |
| csharp_preserve_single_line_statements = true | ||
|
|
||
| # IDE0060: Remove unused parameter | ||
| dotnet_diagnostic.IDE0060.severity = warning |
There was a problem hiding this comment.
📝 This moved from *.cs to *.*. The VB code will need to be updated to fix the new warnings.
There was a problem hiding this comment.
@Youssef1313 I don't think we should make this change as part of this PR. Please move *.cs things back to just *.cs, and revert the VB changes.
This reverts commit cb1c126.
|
@333fred Can we get this merged? Thanks! |
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
See #65274 (comment)