-
Notifications
You must be signed in to change notification settings - Fork 53
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
Доработаны диагностические сообщения в проверке md-object-attribute-comment-incorrect-type #1342
Доработаны диагностические сообщения в проверке md-object-attribute-comment-incorrect-type #1342
Conversation
…ject-attribute-comment-incorrect-type
…eature/1340-md-object-attribute-comment-incorrect-type-imp-msg
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.
А тут точно не две разные проверки объединены в одну?
...s/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/MdObjectAttributeCommentCheck.java
Outdated
Show resolved
Hide resolved
resultAceptor.addIssue(DEFAULT_CHECK_MESSAGE, BASIC_FEATURE__TYPE); | ||
String msg = MessageFormat.format(Messages.MdObjectAttributeCommentCheck_message, | ||
Messages.MdObjectAttributeCommentCheck_Is_compound_type); | ||
resultAceptor.addIssue(msg, BASIC_FEATURE__TYPE); | ||
return; | ||
} | ||
|
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.
Для получения eContainer() определенного типа ближайший вверх, можно использовать утильный метод EcoreUtil2.getContainerOfType
...s/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/MdObjectAttributeCommentCheck.java
Show resolved
Hide resolved
Т.к. эти проверки проверяют реквизит "Комментарий" у объектов метаданных, решили в свое время объединить в одну. Никто не был против. |
Что сделано
Чек-лист
Общее:
master
и нет конфликтовЕсли применимо:
Закрываемые задачи
Closes #1340
Closes #1345