diff --git a/CHANGELOG.md b/CHANGELOG.md index af73c757..24dfbc66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ #### Метаданные +- Документ не имеет реквизита "Комментарий" #### Формы diff --git a/bundles/com.e1c.v8codestyle.md/markdown/md-object-attribute-comment-not-exist.md b/bundles/com.e1c.v8codestyle.md/markdown/md-object-attribute-comment-not-exist.md new file mode 100644 index 00000000..e2169ef4 --- /dev/null +++ b/bundles/com.e1c.v8codestyle.md/markdown/md-object-attribute-comment-not-exist.md @@ -0,0 +1,18 @@ +# Document does not have the "Comment" attribute + +For all documents, it is recommended to create the attribute Comment +(string of unlimited length). In this prop, users can +write down various official notes on the document, which +do not relate to the application specifics of the document (for example, the reason for marking +for deletions, etc.). Access to props for users should be +configured in the same way as for the document itself (if the document is available only +for reading, then the comment is read-only; if there is a right +document record, then the attribute value can also be changed). + +## Неправильно + +## Правильно + +## См. + +[Document does not have the "Comment" attribute](https://its.1c.ru/db/v8std#content:531:hdoc:1) \ No newline at end of file diff --git a/bundles/com.e1c.v8codestyle.md/markdown/ru/md-object-attribute-comment-not-exist.md b/bundles/com.e1c.v8codestyle.md/markdown/ru/md-object-attribute-comment-not-exist.md new file mode 100644 index 00000000..b689d874 --- /dev/null +++ b/bundles/com.e1c.v8codestyle.md/markdown/ru/md-object-attribute-comment-not-exist.md @@ -0,0 +1,18 @@ +# Документ не имеет реквизита "Комментарий" + +Для всех документов рекомендуется создавать реквизит Комментарий +(строка неограниченной длины). В этом реквизите пользователи могут +записывать по документу различные заметки служебного характера, которые +не относятся к прикладной специфике документа (например, причина пометки +на удаления и т.п.). Доступ к реквизиту для пользователей должен быть +настроен также как и к самому документу (если документ доступен только +для чтения, то и комментарий – только для чтения; если же есть право +записи документа, то и значение реквизита также можно изменять). + +## Неправильно + +## Правильно + +## См. + +[Реквизит «Комментарий» у документов](https://its.1c.ru/db/v8std#content:531:hdoc:1) \ No newline at end of file diff --git a/bundles/com.e1c.v8codestyle.md/plugin.xml b/bundles/com.e1c.v8codestyle.md/plugin.xml index 97706624..2c7e60d4 100644 --- a/bundles/com.e1c.v8codestyle.md/plugin.xml +++ b/bundles/com.e1c.v8codestyle.md/plugin.xml @@ -110,6 +110,10 @@ category="com.e1c.v8codestyle.md" class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.ExtensionMdObjectNamePrefixCheck"> + + 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 new file mode 100644 index 00000000..6063783b --- /dev/null +++ b/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/MdObjectAttributeCommentNotExistCheck.java @@ -0,0 +1,182 @@ +/******************************************************************************* + * Copyright (C) 2023, 1C-Soft LLC and others. + * + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * 1C-Soft LLC - initial API and implementation + * Vadim Gocnharov - issue #487 + *******************************************************************************/ + +package com.e1c.v8codestyle.md.check; + +import java.util.Set; +import java.util.TreeSet; + +import static com._1c.g5.v8.dt.metadata.mdclass.MdClassPackage.Literals.CATALOG; +import static com._1c.g5.v8.dt.metadata.mdclass.MdClassPackage.Literals.DOCUMENT; +import static com._1c.g5.v8.dt.metadata.mdclass.MdClassPackage.Literals.CATALOG__ATTRIBUTES; +import static com._1c.g5.v8.dt.metadata.mdclass.MdClassPackage.Literals.DOCUMENT__ATTRIBUTES; + +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.emf.common.util.EList; + +import com._1c.g5.v8.dt.metadata.mdclass.Catalog; +import com._1c.g5.v8.dt.metadata.mdclass.CatalogAttribute; +import com._1c.g5.v8.dt.metadata.mdclass.DbObjectAttribute; +import com._1c.g5.v8.dt.metadata.mdclass.Document; +import com._1c.g5.v8.dt.metadata.mdclass.DocumentAttribute; +import com.e1c.g5.v8.dt.check.CheckComplexity; +import com.e1c.g5.v8.dt.check.ICheckParameters; +import com.e1c.g5.v8.dt.check.components.BasicCheck; +import com.e1c.g5.v8.dt.check.components.TopObjectFilterExtension; +import com.e1c.g5.v8.dt.check.settings.IssueSeverity; +import com.e1c.g5.v8.dt.check.settings.IssueType; +import com.e1c.v8codestyle.check.StandardCheckExtension; +import com.e1c.v8codestyle.internal.md.CorePlugin; + +/** + * Check top Metadata object (Catalog or Document) have attribute named "Comment" + * + * @author Vadim Goncharov + */ +public class MdObjectAttributeCommentNotExistCheck + extends BasicCheck +{ + + private static final String CHECK_ID = "md-object-attribute-comment-not-exist"; //$NON-NLS-1$ + + public static final String PARAM_CHECK_DOCUMENTS = "checkDocuments"; //$NON-NLS-1$ + public static final String PARAM_CHECK_CATALOGS = "checkCatalogs"; //$NON-NLS-1$ + public static final String PARAM_ATTRIBUTE_NAMES_LIST = "attributesList"; //$NON-NLS-1$ + + public static final String DEFAULT_CHECK_DOCUMENTS = Boolean.toString(true); + public static final String DEFAULT_CHECK_CATALOGS = Boolean.toString(false); + private static final Set ATTRIBUTE_NAMES_LIST = Set.of("Комментарий", //$NON-NLS-1$ + "Comment"); //$NON-NLS-1$ + private static final String DELIMITER = ","; //$NON-NLS-1$ + public static final String DEFAULT_ATTRIBUTE_NAMES_LIST = String.join(DELIMITER, ATTRIBUTE_NAMES_LIST); + + public MdObjectAttributeCommentNotExistCheck() + { + super(); + } + + @Override + public String getCheckId() + { + return CHECK_ID; + } + + @Override + protected void configureCheck(CheckConfigurer builder) + { + builder.title(Messages.MdObjectAttributeCommentNotExist_title) + .description(Messages.MdObjectAttributeCommentNotExist_description) + .complexity(CheckComplexity.NORMAL) + .severity(IssueSeverity.MINOR) + .issueType(IssueType.UI_STYLE) + .extension(new StandardCheckExtension(531, getCheckId(), CorePlugin.PLUGIN_ID)) + .extension(new SkipAdoptedInExtensionMdObjectExtension()) + .extension(new TopObjectFilterExtension()) + .parameter(PARAM_ATTRIBUTE_NAMES_LIST, String.class, DEFAULT_ATTRIBUTE_NAMES_LIST, + Messages.MdObjectAttributeCommentNotExist_Param_Attribute_name_list); + + builder.topObject(DOCUMENT) + .checkTop() + .features(DOCUMENT__ATTRIBUTES) + .parameter(PARAM_CHECK_DOCUMENTS, Boolean.class, DEFAULT_CHECK_DOCUMENTS, + Messages.MdObjectAttributeCommentNotExist_Param_Check_Documents); + + builder.topObject(CATALOG) + .checkTop() + .features(CATALOG__ATTRIBUTES) + .parameter(PARAM_CHECK_CATALOGS, Boolean.class, DEFAULT_CHECK_CATALOGS, + Messages.MdObjectAttributeCommentNotExist_Param_Check_Catalogs); + } + + @Override + protected void check(Object object, ResultAcceptor resultAcceptor, ICheckParameters parameters, + IProgressMonitor monitor) + { + + boolean attributeExist = false; + + boolean checkCatalogs = parameters.getBoolean(PARAM_CHECK_CATALOGS); + boolean checkDocuments = parameters.getBoolean(PARAM_CHECK_DOCUMENTS); + Set attributeNamesList = getListOfAttributeNames(parameters); + + if (monitor.isCanceled()) + { + return; + } + + if (object instanceof Document && checkDocuments) + { + Document document = (Document)object; + EList attributes = document.getAttributes(); + for (DbObjectAttribute attribute : attributes) + { + + if (monitor.isCanceled()) + { + return; + } + + if (isAttributeNamedComment(attribute, attributeNamesList)) + { + attributeExist = true; + break; + } + + } + } + else if (object instanceof Catalog && checkCatalogs) + { + Catalog catalog = (Catalog)object; + EList attributes = catalog.getAttributes(); + for (DbObjectAttribute attribute : attributes) + { + + if (monitor.isCanceled()) + { + return; + } + + if (isAttributeNamedComment(attribute, attributeNamesList)) + { + attributeExist = true; + break; + } + } + } + + if (!monitor.isCanceled() && !attributeExist) + { + resultAcceptor + .addIssue(Messages.MdObjectAttributeCommentNotExist_Md_Object_attribute_Comment_does_not_exist, object); + } + + } + + private boolean isAttributeNamedComment(DbObjectAttribute attribute, Set attributeNamesList) + { + return attributeNamesList.contains(attribute.getName()); + } + + private Set getListOfAttributeNames(ICheckParameters parameters) + { + Set attributeNames = new TreeSet<>(String.CASE_INSENSITIVE_ORDER); + + String paramAttributesString = parameters.getString(PARAM_ATTRIBUTE_NAMES_LIST); + Set paramsAttributeNames = Set.of(paramAttributesString.replace(" ", "").split(DELIMITER)); //$NON-NLS-1$ //$NON-NLS-2$ + + attributeNames.addAll(paramsAttributeNames); + + return attributeNames; + } +} diff --git a/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/Messages.java b/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/Messages.java index ad24ba4f..42eadf17 100644 --- a/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/Messages.java +++ b/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/Messages.java @@ -27,6 +27,12 @@ final class Messages public static String DbObjectRefNonRefTypesCheck_Description; public static String DbObjectRefNonRefTypesCheck_Ref_and_other; public static String DbObjectRefNonRefTypesCheck_Title; + public static String MdObjectAttributeCommentNotExist_description; + public static String MdObjectAttributeCommentNotExist_Md_Object_attribute_Comment_does_not_exist; + public static String MdObjectAttributeCommentNotExist_Param_Check_Catalogs; + public static String MdObjectAttributeCommentNotExist_Param_Check_Documents; + public static String MdObjectAttributeCommentNotExist_Param_Attribute_name_list; + public static String MdObjectAttributeCommentNotExist_title; public static String MdObjectNameWithoutSuffix_Name_suffix_list_title; public static String CommonModuleNameClient_title; public static String CommonModuleNameClientServer_description; diff --git a/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/messages.properties b/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/messages.properties index 408dafcd..588a7a74 100644 --- a/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/messages.properties +++ b/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/messages.properties @@ -71,6 +71,18 @@ MdListObjectPresentationCheck_decription = Neither Object presentation nor List MdListObjectPresentationCheck_title = Neither Object presentation nor List presentation is not filled +MdObjectAttributeCommentNotExist_Md_Object_attribute_Comment_does_not_exist = Md Object attribute "Comment" does not exist + +MdObjectAttributeCommentNotExist_Param_Attribute_name_list = Attribute name list + +MdObjectAttributeCommentNotExist_Param_Check_Catalogs = Check catalogs + +MdObjectAttributeCommentNotExist_Param_Check_Documents = Check documents + +MdObjectAttributeCommentNotExist_description = Md Object attribute "Comment" does not exist + +MdObjectAttributeCommentNotExist_title = Md Object attribute "Comment" does not exist + MdObjectNameLength_Maximum_name_length_description = Maximum name length MdObjectNameLength_description = Metadata object name length should be less than {0} diff --git a/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/messages_ru.properties b/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/messages_ru.properties index b78997ef..f9e23840 100644 --- a/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/messages_ru.properties +++ b/bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/messages_ru.properties @@ -72,6 +72,18 @@ MdListObjectPresentationCheck_decription = Не заполнено ни пред MdListObjectPresentationCheck_title = Не заполнено ни представление объекта, ни представление списка +MdObjectAttributeCommentNotExist_Md_Object_attribute_Comment_does_not_exist = Объект метаданных не имеет реквизит "Комментарий" + +MdObjectAttributeCommentNotExist_Param_Attribute_name_list = Список имен реквизита + +MdObjectAttributeCommentNotExist_Param_Check_Catalogs = Проверять справочники + +MdObjectAttributeCommentNotExist_Param_Check_Documents = Проверять документы + +MdObjectAttributeCommentNotExist_description = Объект метаданных не имеет реквизит "Комментарий" + +MdObjectAttributeCommentNotExist_title = Объект метаданных не имеет реквизит "Комментарий" + MdObjectNameLength_Maximum_name_length_description = Максимальная длина имени MdObjectNameLength_description = Длина имени объекта метаданного должна быть меньше чем {0} diff --git a/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectAttributeCommentNotExistCheckTest.java b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectAttributeCommentNotExistCheckTest.java new file mode 100644 index 00000000..7d39fc3f --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/src/com/e1c/v8codestyle/md/check/itests/MdObjectAttributeCommentNotExistCheckTest.java @@ -0,0 +1,58 @@ +package com.e1c.v8codestyle.md.check.itests; + +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; + +import org.junit.Test; + +import com._1c.g5.v8.dt.core.platform.IDtProject; +import com._1c.g5.v8.dt.validation.marker.Marker; +import com.e1c.g5.v8.dt.testing.check.CheckTestBase; +import com.e1c.v8codestyle.md.check.MdObjectAttributeCommentNotExistCheck; + +/** + * Tests for {@link MdObjectAttributeCommentNotExistCheck} check. + * + * @author Vadim Goncharov + * + */ +public class MdObjectAttributeCommentNotExistCheckTest + extends CheckTestBase +{ + + private static final String CHECK_ID = "md-object-attribute-comment-not-exist"; + + private static final String PROJECT_NAME = "MdObjectAttributeCommentNotExist"; + + /** + * Test that md object's attribute named "Comment" does not exist + * @throws Exception the exception + */ + @Test + public void testMdObject() throws Exception + { + IDtProject dtProject = openProjectAndWaitForValidationFinish(PROJECT_NAME); + assertNotNull(dtProject); + + long id = getTopObjectIdByFqn("Document.TestDocument1", dtProject); + Marker marker = getFirstMarker(CHECK_ID, id, dtProject); + assertNull(marker); + + id = getTopObjectIdByFqn("Document.TestDocument2", dtProject); + marker = getFirstMarker(CHECK_ID, id, dtProject); + assertNull(marker); + + id = getTopObjectIdByFqn("Document.TestDocument3", dtProject); + marker = getFirstMarker(CHECK_ID, id, dtProject); + assertNotNull(marker); + + id = getTopObjectIdByFqn("Catalog.TestCatalog1", dtProject); + marker = getFirstMarker(CHECK_ID, id, dtProject); + assertNull(marker); + + id = getTopObjectIdByFqn("Catalog.TestCatalog2", dtProject); + marker = getFirstMarker(CHECK_ID, id, dtProject); + assertNotNull(marker); + } + +} diff --git a/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/.project b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/.project new file mode 100644 index 00000000..41de25d1 --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/.project @@ -0,0 +1,18 @@ + + + MdObjectAttributeCommentNotExist + + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + + org.eclipse.xtext.ui.shared.xtextNature + com._1c.g5.v8.dt.core.V8ConfigurationNature + + diff --git a/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/.settings/Default.cset b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/.settings/Default.cset new file mode 100644 index 00000000..0ff05a2f --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/.settings/Default.cset @@ -0,0 +1,10 @@ +{ + "version": 1, + "settings": { + "md-object-attribute-comment-not-exist": { + "properties": { + "checkCatalogs": "true" + } + } + } +} \ No newline at end of file diff --git a/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/.settings/org.eclipse.core.resources.prefs b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000..99f26c02 --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/DT-INF/PROJECT.PMF b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/DT-INF/PROJECT.PMF new file mode 100644 index 00000000..6835f1cd --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/DT-INF/PROJECT.PMF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 +Runtime-Version: 8.3.19 diff --git a/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Catalogs/TestCatalog1/TestCatalog1.mdo b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Catalogs/TestCatalog1/TestCatalog1.mdo new file mode 100644 index 00000000..ff7ecd4a --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Catalogs/TestCatalog1/TestCatalog1.mdo @@ -0,0 +1,49 @@ + + + + + + + + + + TestCatalog1 + + en + Test catalog1 + + true + Catalog.TestCatalog1.StandardAttribute.Code + Catalog.TestCatalog1.StandardAttribute.Description + DontUse + Use + Managed + Use + 2 + true + 9 + 25 + String + Variable + true + true + AsDescription + InDialog + BothWays + + Comment + + en + Comment + + + String + + + + + + Use + Use + + diff --git a/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Catalogs/TestCatalog2/TestCatalog2.mdo b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Catalogs/TestCatalog2/TestCatalog2.mdo new file mode 100644 index 00000000..91a0c7eb --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Catalogs/TestCatalog2/TestCatalog2.mdo @@ -0,0 +1,33 @@ + + + + + + + + + + TestCatalog2 + + en + Test catalog2 + + true + Catalog.TestCatalog2.StandardAttribute.Code + Catalog.TestCatalog2.StandardAttribute.Description + DontUse + Use + Managed + Use + 2 + true + 9 + 25 + String + Variable + true + true + AsDescription + InDialog + BothWays + diff --git a/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Configuration/CommandInterface.cmi b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Configuration/CommandInterface.cmi new file mode 100644 index 00000000..0cf6de8a --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Configuration/CommandInterface.cmi @@ -0,0 +1,2 @@ + + diff --git a/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Configuration/Configuration.mdo b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Configuration/Configuration.mdo new file mode 100644 index 00000000..595f1a03 --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Configuration/Configuration.mdo @@ -0,0 +1,46 @@ + + + MdObjectAttributeCommentNotExist + + en + Md object attribute comment not exist + + + + + + + + + 8.3.19 + ManagedApplication + PersonalComputer + + + true + + + OSBackup + true + + + Language.English + Managed + NotAutoFree + DontUse + DontUse + 8.3.19 + + English + + en + English + + en + + Catalog.TestCatalog1 + Catalog.TestCatalog2 + Document.TestDocument1 + Document.TestDocument2 + Document.TestDocument3 + diff --git a/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Configuration/MainSectionCommandInterface.cmi b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Configuration/MainSectionCommandInterface.cmi new file mode 100644 index 00000000..0cf6de8a --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Configuration/MainSectionCommandInterface.cmi @@ -0,0 +1,2 @@ + + diff --git a/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Documents/TestDocument1/TestDocument1.mdo b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Documents/TestDocument1/TestDocument1.mdo new file mode 100644 index 00000000..c2ecda4e --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Documents/TestDocument1/TestDocument1.mdo @@ -0,0 +1,44 @@ + + + + + + + + + + TestDocument1 + + en + Test document1 + + true + Document.TestDocument1.StandardAttribute.Number + DontUse + Use + Managed + Use + String + 9 + Variable + true + true + true + true + + Comment + + en + Comment + + + String + + + + + + Use + Use + + diff --git a/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Documents/TestDocument2/TestDocument2.mdo b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Documents/TestDocument2/TestDocument2.mdo new file mode 100644 index 00000000..861f9954 --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Documents/TestDocument2/TestDocument2.mdo @@ -0,0 +1,44 @@ + + + + + + + + + + TestDocument2 + + en + Test document2 + + true + Document.TestDocument2.StandardAttribute.Number + DontUse + Use + Managed + Use + String + 9 + Variable + true + true + true + true + + Комментарий + + en + Комментарий + + + String + + + + + + Use + Use + + diff --git a/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Documents/TestDocument3/TestDocument3.mdo b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Documents/TestDocument3/TestDocument3.mdo new file mode 100644 index 00000000..51c6666a --- /dev/null +++ b/tests/com.e1c.v8codestyle.md.itests/workspace/MdObjectAttributeCommentNotExist/src/Documents/TestDocument3/TestDocument3.mdo @@ -0,0 +1,28 @@ + + + + + + + + + + TestDocument3 + + en + Test document3 + + true + Document.TestDocument3.StandardAttribute.Number + DontUse + Use + Managed + Use + String + 9 + Variable + true + true + true + true +