diff --git a/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/MdObjectAttributeCommentNotExistCheck.java b/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/MdObjectAttributeCommentNotExistCheck.java index 6063783b4..f0af9c129 100644 --- a/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/MdObjectAttributeCommentNotExistCheck.java +++ b/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/MdObjectAttributeCommentNotExistCheck.java @@ -134,6 +134,12 @@ protected void check(Object object, ResultAcceptor resultAcceptor, ICheckParamet } } + + if (!monitor.isCanceled() && !attributeExist) + { + resultAcceptor.addIssue( + Messages.MdObjectAttributeCommentNotExist_Md_Object_attribute_Comment_does_not_exist, object); + } } else if (object instanceof Catalog && checkCatalogs) { @@ -153,12 +159,12 @@ else if (object instanceof Catalog && checkCatalogs) break; } } - } - if (!monitor.isCanceled() && !attributeExist) - { - resultAcceptor - .addIssue(Messages.MdObjectAttributeCommentNotExist_Md_Object_attribute_Comment_does_not_exist, object); + if (!monitor.isCanceled() && !attributeExist) + { + resultAcceptor.addIssue( + Messages.MdObjectAttributeCommentNotExist_Md_Object_attribute_Comment_does_not_exist, object); + } } } @@ -179,4 +185,5 @@ private Set getListOfAttributeNames(ICheckParameters parameters) return attributeNames; } + }