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
Clean up #13202
Clean up #13202
Conversation
src/OrchardCore.Modules/OrchardCore.Media.AmazonS3/AwsStorageOptionsConfiguration.cs
Outdated
Show resolved
Hide resolved
Name = "Search", | ||
Area = searchProviders.FirstOrDefault().AreaName, | ||
Action = "Search", | ||
Controller = "Search" } | ||
Controller = "Search" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
,
at the end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why they made it available then ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems hint for those who writing fast :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StyleCop has this rule to enforce a trailing comma in multi-line object initializers.
The advantage of having it is that changes to the code will be restricted to adding and removing lines, in contrast to adding a new line at the end of the object initializer AND adding a the comma to the line before. This makes diffs a lot more readable.
I think we should have analyzers in place for such things to avoid overhead in reviews.
UPDATE: See this SO answer for more background info on the topic.
No description provided.