roslynator icon indicating copy to clipboard operation
roslynator copied to clipboard

Named arguments -> Forced?

Open p-bojkowski opened this issue 4 years ago • 4 comments
trafficstars

Hi!

I am looking for a rule that forced devs to use named arguments. Any rules for this in Roslynator?

p-bojkowski avatar Aug 09 '21 10:08 p-bojkowski

Hi,

such rule can be definitely implemented but is it really useful to put named arguments everywhere?

josefpihrt avatar Aug 09 '21 15:08 josefpihrt

Everywhere for sure not. But for this reason we can:

dotnet_diagnostic.RCSxxxxxx.severity=none

:)

p-bojkowski avatar Aug 09 '21 15:08 p-bojkowski

Ok, I will ask more precisely: What is the real use case for this kind of a rule.

I'm asking because I would like to avoid implementing a rule that turns out to be practically useless.

josefpihrt avatar Aug 09 '21 16:08 josefpihrt

@JosefPihrt : Real use cases: stackoverflow

require-named-args-fs exists already but you need to add an attribute to the method...

dotnet_diagnostic.RCSxxxxxx.severity=none

is better :)

p-bojkowski avatar Aug 09 '21 17:08 p-bojkowski