-
Notifications
You must be signed in to change notification settings - Fork 0
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
GroupByEntityRule #50
Conversation
Mindbox.Analyzers/MindboxAnalyzer.cs
Outdated
@@ -35,7 +35,8 @@ static MindboxAnalyzer() | |||
new ModelApplicationHostControllerServiceLocatorProhibitedRule(), | |||
new NamedObjectModelConfigurationRegisterProhibitedRule(), | |||
new DataContractRequireIfUsingDataMemberRule(), | |||
new ForbidRawSqlOutsideDbProviderSpecificCodeRule() | |||
new ForbidRawSqlOutsideDbProviderSpecificCodeRule(), | |||
new GroupByEntityRule() |
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.
давай чуть имя правила улучшим
чтобы по нему было понятно, что правило энфорсит, как выше у других
private const string Title = "Grouping by navigation property check"; | ||
private const string MessageFormat = "Grouping by navigation properties is not allowed"; | ||
private const string Description = | ||
"Grouping by navigation properties is not allowed to avoid issues " + |
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.
в описании нужно описать как обойтись без навигационных свойств
щас предполагается - что разработчик пойдет смотреть ишью в npgsql, это кажется слишком долгим путем
нужно подсказать - что используй свойство такое-то взамен
https://github.com/mindbox-cloud/issues-platform/issues/2994