mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2024-11-28 09:33:06 +02:00
Co-authored-by: Илюхин Артем Васильевич <ilua@1c.ru> Co-authored-by: Dmitriy Marmyshev <dmar@1c.ru>
This commit is contained in:
parent
ea5a034841
commit
3d94b0fb63
@ -13,6 +13,7 @@
|
||||
- Документ не имеет реквизита "Комментарий"
|
||||
- Реквизит "Комментарий" имеет корректный тип
|
||||
- В документе, предполагающем проведение, не установлен флаг "Привилегированный режим при проведении / отмене проведения"
|
||||
- Проверка наличия буквы "ё" в имени, синониме или комментарии объекта метаданных
|
||||
|
||||
#### Формы
|
||||
|
||||
|
@ -0,0 +1,12 @@
|
||||
# Check Russian Yo letter "ё" in the name, synonym or comment of metadata object
|
||||
|
||||
In Russian locale, it is not allowed to use the letter "ё" in names, synonyms and comments of metadata objects.
|
||||
|
||||
|
||||
## Noncompliant Code Example
|
||||
|
||||
## Compliant Solution
|
||||
|
||||
## See
|
||||
|
||||
[Name, synonym, and comment (in Russian)](https://its.1c.ru/db/v8std#content:474:hdoc)
|
@ -0,0 +1,12 @@
|
||||
# Проверка наличия буквы "ё" в имени, синониме или комментарии объекта метаданных
|
||||
|
||||
В именах, синонимах и комментариях объектов метаданных не допускается использовать букву "ё".
|
||||
|
||||
|
||||
## Неправильно
|
||||
|
||||
## Правильно
|
||||
|
||||
## См.
|
||||
|
||||
[Имя, синоним, комментарий](https://its.1c.ru/db/v8std#content:474:hdoc)
|
@ -110,6 +110,10 @@
|
||||
category="com.e1c.v8codestyle.md"
|
||||
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.ExtensionMdObjectNamePrefixCheck">
|
||||
</check>
|
||||
<check
|
||||
category="com.e1c.v8codestyle.md"
|
||||
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.MdObjectNameUnallowedLetterCheck">
|
||||
</check>
|
||||
<check
|
||||
category="com.e1c.v8codestyle.md"
|
||||
class="com.e1c.v8codestyle.md.check.DocumentPostInPrivilegedModeCheck">
|
||||
@ -123,5 +127,5 @@
|
||||
class="com.e1c.v8codestyle.md.check.MdObjectAttributeCommentNotExistCheck">
|
||||
</check>
|
||||
</extension>
|
||||
|
||||
</plugin>
|
||||
|
||||
</plugin>
|
@ -0,0 +1,91 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (C) 2022, 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
|
||||
*******************************************************************************/
|
||||
package com.e1c.v8codestyle.md.check;
|
||||
|
||||
import static com._1c.g5.v8.dt.metadata.mdclass.MdClassPackage.Literals.MD_OBJECT;
|
||||
import static com._1c.g5.v8.dt.metadata.mdclass.MdClassPackage.Literals.MD_OBJECT__COMMENT;
|
||||
import static com._1c.g5.v8.dt.metadata.mdclass.MdClassPackage.Literals.MD_OBJECT__NAME;
|
||||
import static com._1c.g5.v8.dt.metadata.mdclass.MdClassPackage.Literals.MD_OBJECT__SYNONYM;
|
||||
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
|
||||
import com._1c.g5.v8.dt.metadata.mdclass.MdObject;
|
||||
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 in Russian locale, names, synonyms and comments of metadata objects do not contain the letter "ё".
|
||||
*
|
||||
* @author Olga Bozhko
|
||||
*/
|
||||
public class MdObjectNameUnallowedLetterCheck
|
||||
extends BasicCheck
|
||||
{
|
||||
private static final String CHECK_ID = "mdo-ru-name-unallowed-letter"; //$NON-NLS-1$
|
||||
private static final String LANGUAGE_KEY_RU = "ru"; //$NON-NLS-1$
|
||||
private static final String UNALLOWED_LETTER = "ё"; //$NON-NLS-1$
|
||||
private static final String ISSUE_MESSAGE =
|
||||
Messages.MdObjectNameUnallowedLetterCheck_Ru_locale_unallowed_letter_used_for_name_synonym_or_comment;
|
||||
|
||||
@Override
|
||||
public String getCheckId()
|
||||
{
|
||||
return CHECK_ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void configureCheck(CheckConfigurer builder)
|
||||
{
|
||||
builder.title(Messages.MdObjectNameUnallowedLetterCheck_title)
|
||||
.description(Messages.MdObjectNameUnallowedLetterCheck_description)
|
||||
.complexity(CheckComplexity.NORMAL)
|
||||
.severity(IssueSeverity.MINOR)
|
||||
.extension(new TopObjectFilterExtension())
|
||||
.issueType(IssueType.UI_STYLE)
|
||||
.extension(new StandardCheckExtension(474, getCheckId(), CorePlugin.PLUGIN_ID))
|
||||
.extension(new SkipAdoptedInExtensionMdObjectExtension())
|
||||
.topObject(MD_OBJECT)
|
||||
.features(MD_OBJECT__NAME, MD_OBJECT__SYNONYM, MD_OBJECT__COMMENT);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void check(Object object, ResultAcceptor resultAceptor, ICheckParameters parameters,
|
||||
IProgressMonitor monitor)
|
||||
{
|
||||
MdObject mdObject = (MdObject)object;
|
||||
if (hasUnallowedLetter(mdObject.getName()))
|
||||
{
|
||||
resultAceptor.addIssue(ISSUE_MESSAGE, MD_OBJECT__NAME);
|
||||
}
|
||||
if (hasUnallowedLetter(mdObject.getSynonym().get(LANGUAGE_KEY_RU)))
|
||||
{
|
||||
resultAceptor.addIssue(ISSUE_MESSAGE, MD_OBJECT__SYNONYM);
|
||||
}
|
||||
if (hasUnallowedLetter(mdObject.getComment()))
|
||||
{
|
||||
resultAceptor.addIssue(ISSUE_MESSAGE, MD_OBJECT__COMMENT);
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean hasUnallowedLetter(String testableString)
|
||||
{
|
||||
return testableString != null && testableString.contains(UNALLOWED_LETTER);
|
||||
|
||||
}
|
||||
}
|
@ -76,6 +76,9 @@ final class Messages
|
||||
public static String MdObjectNameLength_Maximum_name_length_description;
|
||||
public static String MdObjectNameLength_message;
|
||||
public static String MdObjectNameLength_title;
|
||||
public static String MdObjectNameUnallowedLetterCheck_description;
|
||||
public static String MdObjectNameUnallowedLetterCheck_Ru_locale_unallowed_letter_used_for_name_synonym_or_comment;
|
||||
public static String MdObjectNameUnallowedLetterCheck_title;
|
||||
public static String MdListObjectPresentationCheck_decription;
|
||||
public static String MdListObjectPresentationCheck_Neither_Object_presentation_nor_List_presentation_is_not_filled;
|
||||
public static String MdListObjectPresentationCheck_title;
|
||||
|
@ -111,6 +111,12 @@ MdObjectNameLength_message = Metadata object name should be less then {0}
|
||||
|
||||
MdObjectNameLength_title = Metadata object name length
|
||||
|
||||
MdObjectNameUnallowedLetterCheck_Ru_locale_unallowed_letter_used_for_name_synonym_or_comment = In Russian locale, name, synonym or comment of metadata object contain the unallowed letter
|
||||
|
||||
MdObjectNameUnallowedLetterCheck_description = In Russian locale name, synonym or comment of metadata object contain the unallowed letter
|
||||
|
||||
MdObjectNameUnallowedLetterCheck_title = In Russian locale name, synonym or comment of metadata object contain the unallowed letter
|
||||
|
||||
MdObjectNameWithoutSuffix_Name_suffix_list_title = Name suffix list, comma separated
|
||||
|
||||
MdOwnerAttributeSynonymEmpty_Description = Synonym of the 'Owner' or 'Parent' standard attribute is not specified
|
||||
|
@ -112,6 +112,12 @@ MdObjectNameLength_message = Длина имени объекта метадан
|
||||
|
||||
MdObjectNameLength_title = Длина имени объекта метаданных
|
||||
|
||||
MdObjectNameUnallowedLetterCheck_Ru_locale_unallowed_letter_used_for_name_synonym_or_comment = Имя, синоним или комментарий содержит букву “ё”
|
||||
|
||||
MdObjectNameUnallowedLetterCheck_description = Имя, синоним или комментарий содержит букву “ё”
|
||||
|
||||
MdObjectNameUnallowedLetterCheck_title = Имя, синоним или комментарий содержит букву “ё”
|
||||
|
||||
MdObjectNameWithoutSuffix_Name_suffix_list_title = Список суффиксов имени, разделенный запятой
|
||||
|
||||
MdOwnerAttributeSynonymEmpty_Description = Не задан синоним у стандартного свойства 'Владелец' или 'Родитель'
|
||||
|
@ -0,0 +1,106 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (C) 2022, 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
|
||||
*******************************************************************************/
|
||||
package com.e1c.v8codestyle.md.check.itests;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
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.MdObjectNameUnallowedLetterCheck;
|
||||
|
||||
/**
|
||||
* Tests for {@link MdObjectNameUnallowedLetterCheck} check
|
||||
*
|
||||
* @author OlgaBozhko
|
||||
*
|
||||
*/
|
||||
public class MdObjectNameUnallowedLetterCheckTest
|
||||
extends CheckTestBase
|
||||
{
|
||||
private static final String CHECK_ID = "mdo-ru-name-unallowed-letter"; //$NON-NLS-1$
|
||||
private static final String PROJECT_NAME = "MdObjectNameUnallowedLetter";
|
||||
private static final String MESSAGE =
|
||||
"In Russian locale, name, synonym or comment of metadata object contain the unallowed letter";
|
||||
|
||||
/**
|
||||
* Test that md object name, synonym and comment do not contain unallowed letter "ё" (Ru locale)
|
||||
*
|
||||
* @throws Exception the exception
|
||||
*/
|
||||
@Test
|
||||
public void testMdObjectNameNoUnallowedLetter() throws Exception
|
||||
{
|
||||
IDtProject dtProject = openProjectAndWaitForValidationFinish(PROJECT_NAME);
|
||||
assertNotNull(dtProject);
|
||||
|
||||
long id = getTopObjectIdByFqn("Catalog.ТестовыйКаталог", dtProject);
|
||||
Marker marker = getFirstMarker(CHECK_ID, id, dtProject);
|
||||
assertNull(marker);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that md object name contains unallowed letter "ё" (Ru locale)
|
||||
*
|
||||
* @throws Exception the exception
|
||||
*/
|
||||
@Test
|
||||
public void testMdObjectNameHasUnallowedLetter() throws Exception
|
||||
{
|
||||
IDtProject dtProject = openProjectAndWaitForValidationFinish(PROJECT_NAME);
|
||||
assertNotNull(dtProject);
|
||||
|
||||
long id = getTopObjectIdByFqn("Catalog.ТестовыйКаталог_ё_имя", dtProject);
|
||||
Marker marker = getFirstMarker(CHECK_ID, id, dtProject);
|
||||
assertNotNull(marker);
|
||||
assertEquals(marker.getMessage(), MESSAGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that md object synonym contains unallowed letter "ё" (Ru locale)
|
||||
*
|
||||
* @throws Exception the exception
|
||||
*/
|
||||
@Test
|
||||
public void testMdObjectSynonymHasUnallowedLetter() throws Exception
|
||||
{
|
||||
IDtProject dtProject = openProjectAndWaitForValidationFinish(PROJECT_NAME);
|
||||
assertNotNull(dtProject);
|
||||
|
||||
long id = getTopObjectIdByFqn("Catalog.ТестовыйКаталог_синоним", dtProject);
|
||||
Marker marker = getFirstMarker(CHECK_ID, id, dtProject);
|
||||
assertNotNull(marker);
|
||||
assertEquals(marker.getMessage(), MESSAGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that md object comment contains unallowed letter "ё" (Ru locale)
|
||||
*
|
||||
* @throws Exception the exception
|
||||
*/
|
||||
@Test
|
||||
public void testMdObjectCommentHasUnallowedLetter() throws Exception
|
||||
{
|
||||
IDtProject dtProject = openProjectAndWaitForValidationFinish(PROJECT_NAME);
|
||||
assertNotNull(dtProject);
|
||||
|
||||
long id = getTopObjectIdByFqn("Catalog.ТестовыйКаталог_комментарий", dtProject);
|
||||
Marker marker = getFirstMarker(CHECK_ID, id, dtProject);
|
||||
assertNotNull(marker);
|
||||
assertEquals(marker.getMessage(), MESSAGE);
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>MdObjectNameUnallowedLetter</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
|
||||
<nature>com._1c.g5.v8.dt.core.V8ConfigurationNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding/<project>=UTF-8
|
@ -0,0 +1,2 @@
|
||||
Manifest-Version: 1.0
|
||||
Runtime-Version: 8.3.19
|
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mdclass:Catalog xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="36ba5cf6-b579-431a-9f66-6640d73f9f37">
|
||||
<producedTypes>
|
||||
<objectType typeId="35de42a7-469b-4f3f-8c9b-0cfc2b6ec57f" valueTypeId="9efd60b8-1495-4acf-af4a-e9432c4dc5b4"/>
|
||||
<refType typeId="cdc2d275-e18d-448d-a496-99c90347395a" valueTypeId="b1c7b91a-d456-4243-a03c-4a464b8e899d"/>
|
||||
<selectionType typeId="d2cdeab3-4f0c-4faa-ad72-14bbb5adef4f" valueTypeId="61810606-50ae-4e1e-8880-53ff549236c1"/>
|
||||
<listType typeId="b77c7b07-6d3f-4153-9865-8ddbb800cf35" valueTypeId="6e426ab0-9989-4686-b24b-3c3560cf0670"/>
|
||||
<managerType typeId="6322be2b-8368-4699-9f53-1237a2f60e89" valueTypeId="f843b101-ae66-4eb4-9295-45449f4e5239"/>
|
||||
</producedTypes>
|
||||
<name>ТестовыйКаталог</name>
|
||||
<synonym>
|
||||
<key>ru</key>
|
||||
<value>Тестовый каталог</value>
|
||||
</synonym>
|
||||
<useStandardCommands>true</useStandardCommands>
|
||||
<inputByString>Catalog.ТестовыйКаталог.StandardAttribute.Code</inputByString>
|
||||
<inputByString>Catalog.ТестовыйКаталог.StandardAttribute.Description</inputByString>
|
||||
<fullTextSearchOnInputByString>DontUse</fullTextSearchOnInputByString>
|
||||
<createOnInput>Use</createOnInput>
|
||||
<dataLockControlMode>Managed</dataLockControlMode>
|
||||
<fullTextSearch>Use</fullTextSearch>
|
||||
<objectPresentation>
|
||||
<key>ru</key>
|
||||
<value>1</value>
|
||||
</objectPresentation>
|
||||
<levelCount>2</levelCount>
|
||||
<foldersOnTop>true</foldersOnTop>
|
||||
<codeLength>9</codeLength>
|
||||
<descriptionLength>25</descriptionLength>
|
||||
<codeType>String</codeType>
|
||||
<codeAllowedLength>Variable</codeAllowedLength>
|
||||
<checkUnique>true</checkUnique>
|
||||
<autonumbering>true</autonumbering>
|
||||
<defaultPresentation>AsDescription</defaultPresentation>
|
||||
<editType>InDialog</editType>
|
||||
<choiceMode>BothWays</choiceMode>
|
||||
</mdclass:Catalog>
|
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mdclass:Catalog xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="1ad2aba2-aea6-4e58-a3eb-f243ec84bceb">
|
||||
<producedTypes>
|
||||
<objectType typeId="f53604a9-2b8c-4793-9aa7-8f4da8a78831" valueTypeId="f9503cd1-fd45-4d9a-a128-756511bb55de"/>
|
||||
<refType typeId="f3ef8059-06af-4e5c-86b4-209e8f65cf13" valueTypeId="b252a136-e1f0-43e9-8589-00102d2ba8b7"/>
|
||||
<selectionType typeId="e229648b-ec16-43d8-b470-604d23cedbd9" valueTypeId="978a2d02-cff0-4bf5-a02c-62aa7c6843b6"/>
|
||||
<listType typeId="26a87f3d-3832-4e1e-989f-c823d58f4ec9" valueTypeId="5ce1bac8-50a9-4fe7-b935-75e218beb7d4"/>
|
||||
<managerType typeId="e7fbf22a-1d8e-4992-825d-5d0ebef5af36" valueTypeId="d5c4e733-4e8b-4662-9a9b-05a802931f7d"/>
|
||||
</producedTypes>
|
||||
<name>ТестовыйКаталог_комментарий</name>
|
||||
<synonym>
|
||||
<key>ru</key>
|
||||
<value>Тестовый каталог комментарий</value>
|
||||
</synonym>
|
||||
<comment>ТестовыйКаталог_ё_комментарий</comment>
|
||||
<useStandardCommands>true</useStandardCommands>
|
||||
<inputByString>Catalog.ТестовыйКаталог_комментарий.StandardAttribute.Code</inputByString>
|
||||
<inputByString>Catalog.ТестовыйКаталог_комментарий.StandardAttribute.Description</inputByString>
|
||||
<fullTextSearchOnInputByString>DontUse</fullTextSearchOnInputByString>
|
||||
<createOnInput>Use</createOnInput>
|
||||
<dataLockControlMode>Managed</dataLockControlMode>
|
||||
<fullTextSearch>Use</fullTextSearch>
|
||||
<objectPresentation>
|
||||
<key>ru</key>
|
||||
<value>1</value>
|
||||
</objectPresentation>
|
||||
<levelCount>2</levelCount>
|
||||
<foldersOnTop>true</foldersOnTop>
|
||||
<codeLength>9</codeLength>
|
||||
<descriptionLength>25</descriptionLength>
|
||||
<codeType>String</codeType>
|
||||
<codeAllowedLength>Variable</codeAllowedLength>
|
||||
<checkUnique>true</checkUnique>
|
||||
<autonumbering>true</autonumbering>
|
||||
<defaultPresentation>AsDescription</defaultPresentation>
|
||||
<editType>InDialog</editType>
|
||||
<choiceMode>BothWays</choiceMode>
|
||||
</mdclass:Catalog>
|
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mdclass:Catalog xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="d5f9e89a-54b4-4f90-8366-ca7e1da45c1a">
|
||||
<producedTypes>
|
||||
<objectType typeId="dccfe4b2-98fb-45fe-8a98-9d37785a5120" valueTypeId="0e56efd8-9b3e-49bd-9b98-188f45b7a624"/>
|
||||
<refType typeId="75150b58-4ff4-4115-851f-ef544f42a42d" valueTypeId="42bf34f3-8354-42d3-b556-11c5bfa7addc"/>
|
||||
<selectionType typeId="cba8806c-b871-4d98-9162-b82a5a6c5896" valueTypeId="1a273781-e2e2-4c49-bb9c-43b5231fd3b4"/>
|
||||
<listType typeId="1748e86d-01b6-4d52-9119-bafc9f79e1b1" valueTypeId="63042547-9011-40a1-a638-e4a1b403575f"/>
|
||||
<managerType typeId="0d3261b2-99c9-4a45-bd04-43ceaa17e430" valueTypeId="adbb1328-0456-48c6-9636-3ae849ee92fd"/>
|
||||
</producedTypes>
|
||||
<name>ТестовыйКаталог_синоним</name>
|
||||
<synonym>
|
||||
<key>ru</key>
|
||||
<value>Тестовый каталог ё синоним</value>
|
||||
</synonym>
|
||||
<useStandardCommands>true</useStandardCommands>
|
||||
<inputByString>Catalog.ТестовыйКаталог_синоним.StandardAttribute.Code</inputByString>
|
||||
<inputByString>Catalog.ТестовыйКаталог_синоним.StandardAttribute.Description</inputByString>
|
||||
<fullTextSearchOnInputByString>DontUse</fullTextSearchOnInputByString>
|
||||
<createOnInput>Use</createOnInput>
|
||||
<dataLockControlMode>Managed</dataLockControlMode>
|
||||
<fullTextSearch>Use</fullTextSearch>
|
||||
<objectPresentation>
|
||||
<key>ru</key>
|
||||
<value>1</value>
|
||||
</objectPresentation>
|
||||
<levelCount>2</levelCount>
|
||||
<foldersOnTop>true</foldersOnTop>
|
||||
<codeLength>9</codeLength>
|
||||
<descriptionLength>25</descriptionLength>
|
||||
<codeType>String</codeType>
|
||||
<codeAllowedLength>Variable</codeAllowedLength>
|
||||
<checkUnique>true</checkUnique>
|
||||
<autonumbering>true</autonumbering>
|
||||
<defaultPresentation>AsDescription</defaultPresentation>
|
||||
<editType>InDialog</editType>
|
||||
<choiceMode>BothWays</choiceMode>
|
||||
</mdclass:Catalog>
|
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mdclass:Catalog xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="b2ee6a43-df0e-4285-8176-c18b6e241b93">
|
||||
<producedTypes>
|
||||
<objectType typeId="3e22bd6f-7750-4422-8b02-91a662f8f78e" valueTypeId="ccbb7362-df67-49f4-967c-12a82849dc54"/>
|
||||
<refType typeId="df29049e-8d24-4a91-875c-2a2cffc7e359" valueTypeId="bc30dc0c-5984-4a89-989b-35c9c54aad91"/>
|
||||
<selectionType typeId="9476418d-7fbb-4051-a7b8-6e4b750ec9c8" valueTypeId="548ecb1c-a491-4aa3-a765-a0355dc95d0b"/>
|
||||
<listType typeId="fb2ad3de-9a62-40b4-857c-0406b01e0705" valueTypeId="741f1b6a-0913-44d9-9737-359dee40e17d"/>
|
||||
<managerType typeId="c2d2e7ed-2eb1-4c84-84ca-f3a72c0948b1" valueTypeId="8302eeb7-0f61-4d95-bb16-a1c65491e9a7"/>
|
||||
</producedTypes>
|
||||
<name>ТестовыйКаталог_ё_имя</name>
|
||||
<synonym>
|
||||
<key>ru</key>
|
||||
<value>Тестовый каталог</value>
|
||||
</synonym>
|
||||
<useStandardCommands>true</useStandardCommands>
|
||||
<inputByString>Catalog.ТестовыйКаталог_ё_имя.StandardAttribute.Code</inputByString>
|
||||
<inputByString>Catalog.ТестовыйКаталог_ё_имя.StandardAttribute.Description</inputByString>
|
||||
<fullTextSearchOnInputByString>DontUse</fullTextSearchOnInputByString>
|
||||
<createOnInput>Use</createOnInput>
|
||||
<dataLockControlMode>Managed</dataLockControlMode>
|
||||
<fullTextSearch>Use</fullTextSearch>
|
||||
<objectPresentation>
|
||||
<key>ru</key>
|
||||
<value>1</value>
|
||||
</objectPresentation>
|
||||
<levelCount>2</levelCount>
|
||||
<foldersOnTop>true</foldersOnTop>
|
||||
<codeLength>9</codeLength>
|
||||
<descriptionLength>25</descriptionLength>
|
||||
<codeType>String</codeType>
|
||||
<codeAllowedLength>Variable</codeAllowedLength>
|
||||
<checkUnique>true</checkUnique>
|
||||
<autonumbering>true</autonumbering>
|
||||
<defaultPresentation>AsDescription</defaultPresentation>
|
||||
<editType>InDialog</editType>
|
||||
<choiceMode>BothWays</choiceMode>
|
||||
</mdclass:Catalog>
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<cmi:CommandInterface xmlns:cmi="http://g5.1c.ru/v8/dt/cmi"/>
|
@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mdclass:Configuration xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="52fc997f-b6f0-4ff9-ac4c-96d06e01b36d">
|
||||
<name>MdObjectNameUnallowedLetter</name>
|
||||
<synonym>
|
||||
<key>ru</key>
|
||||
<value>Md object name unallowed letter</value>
|
||||
</synonym>
|
||||
<containedObjects classId="9cd510cd-abfc-11d4-9434-004095e12fc7" objectId="6391eb7f-d6e1-4614-a8eb-9186ff89f1a9"/>
|
||||
<containedObjects classId="9fcd25a0-4822-11d4-9414-008048da11f9" objectId="f56c5439-a106-4d05-9a32-4b32958d9427"/>
|
||||
<containedObjects classId="e3687481-0a87-462c-a166-9f34594f9bba" objectId="70760f62-8e17-4642-a514-af74dc4478bb"/>
|
||||
<containedObjects classId="9de14907-ec23-4a07-96f0-85521cb6b53b" objectId="bd9aa895-f22f-4480-8d48-ec7650f91219"/>
|
||||
<containedObjects classId="51f2d5d8-ea4d-4064-8892-82951750031e" objectId="e3bbdd1b-3d9b-4148-b4ea-9aa669b4ccc7"/>
|
||||
<containedObjects classId="e68182ea-4237-4383-967f-90c1e3370bc7" objectId="884fbe5f-df0a-4a02-80cb-9a15fecda65b"/>
|
||||
<containedObjects classId="fb282519-d103-4dd3-bc12-cb271d631dfc" objectId="5fa81625-81ed-4f4d-88d2-c6a38b0e0004"/>
|
||||
<configurationExtensionCompatibilityMode>8.3.19</configurationExtensionCompatibilityMode>
|
||||
<defaultRunMode>ManagedApplication</defaultRunMode>
|
||||
<usePurposes>PersonalComputer</usePurposes>
|
||||
<scriptVariant>Russian</scriptVariant>
|
||||
<usedMobileApplicationFunctionalities>
|
||||
<functionality>
|
||||
<use>true</use>
|
||||
</functionality>
|
||||
<functionality>
|
||||
<functionality>OSBackup</functionality>
|
||||
<use>true</use>
|
||||
</functionality>
|
||||
</usedMobileApplicationFunctionalities>
|
||||
<defaultLanguage>Language.English</defaultLanguage>
|
||||
<dataLockControlMode>Managed</dataLockControlMode>
|
||||
<objectAutonumerationMode>NotAutoFree</objectAutonumerationMode>
|
||||
<modalityUseMode>DontUse</modalityUseMode>
|
||||
<synchronousPlatformExtensionAndAddInCallUseMode>DontUse</synchronousPlatformExtensionAndAddInCallUseMode>
|
||||
<compatibilityMode>8.3.19</compatibilityMode>
|
||||
<languages uuid="8b10cd01-c878-4d58-bef3-0d10f2da0207">
|
||||
<name>English</name>
|
||||
<synonym>
|
||||
<key>ru</key>
|
||||
<value>English</value>
|
||||
</synonym>
|
||||
<languageCode>ru</languageCode>
|
||||
</languages>
|
||||
<catalogs>Catalog.ТестовыйКаталог</catalogs>
|
||||
<catalogs>Catalog.ТестовыйКаталог_ё_имя</catalogs>
|
||||
<catalogs>Catalog.ТестовыйКаталог_комментарий</catalogs>
|
||||
<catalogs>Catalog.ТестовыйКаталог_синоним</catalogs>
|
||||
</mdclass:Configuration>
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<cmi:CommandInterface xmlns:cmi="http://g5.1c.ru/v8/dt/cmi"/>
|
Loading…
Reference in New Issue
Block a user