-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style: Suppress new() fixer in main library projects #1330
Conversation
Did you also want to suppress the rule for scoped using statements? |
Good idea, done. Again, main library only. |
Could you apply these settings on |
I can but I didn't feel that it was a problem to have the terser syntax in the tests. If we're going to disallow it everywhere then the editor config changes can just go into the root level. |
In my understanding, they're preferences with suggestion severity which means we can use the new styles. If I'm correct I'd rather have the same rule in all projects. |
I am not a fan of this suggestion. We need to be more open in our test lab. Like |
|
Suppresses the fixer for
A a = new A()
toA a = new()
in the main library projects but allows it in the tools and testing projects.My preference is for the more formal style of specifying the type name for the constructor calls. It makes no difference to the functionality I just find it easier to read