DotNetAnalyzers / NullParameterCheckRefactoring

Null Parameter Check Refactoring for Reference Type Parameters
MIT License
14 stars 4 forks source link

Omit braces unless requested by user #3

Open sharwell opened 10 years ago

sharwell commented 10 years ago

It'd be nice if curly braces were omitted from the code fix output any time SA1503 is not enabled in the same project. At this time I do not know of a way to detect if an analyzer for that is included and enabled.

tugberkugurlu commented 10 years ago

Yes, I was thinking the same thing but I'm really not sure how to detect user's preferred style.

sharwell commented 10 years ago

There is no setting for the preferred style within the IDE. However, if another analyzer is enabled for the project which reports SA1503 (link above) as a warning or higher, you can assume the user wishes to include braces in the output.