Is it possible to suppress: Use simple 'using' statement (IDE0063)
only for specific type - TransactionScope
for example.
I have csharp_prefer_simple_using_statement = true
in my .editorconfig
.
Is it possible to provide global SuppressMessageAttribute
that targets all usages of using (var ts = new TransactionScope())
?
That's not possible. Code style language rules can only specify the value and severity. Please see Language rules and Configuration options for code analysis.
The best option may to configure its severity level to suggestion
.