Disable ClassNeverInstantiated.Global by default when class named 'Program' in a console project

When creating a simple C# console project with the default VS template, the class Program ends up flagged by R# with ClassNeverInstantiated, which it's just fine (private entry point of a console app). Considering that it's a special case, I would suggest to tweak the rule to exclude classes named Program from this rule by default.

What do you think?

Best regards,
Joannes Vermorel

1 comment
Comment actions Permalink

If you're not adding instance members, just change it to a static class and the warning will go away.


Please sign in to leave a comment.