Open sharwell opened 8 years ago
I would even suggest allowing multiple using statements without braces for each level, as this actually increases code readability.
@CosminRadu The feature you describe is controlled by an option (which defaults to allowing the case you describe): https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/Configuration.md#consecutive-using-statements-without-braces
The bug only occurs when that setting is set to not allow consecutive using statements.
The following code results in SA1519 getting reported:
When the code fix is applied, the output has the wrong indentation.
Expected
Actual
:memo: See #2181 for the pull request where this behavior was introduced.