1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2026-05-17 09:31:54 +02:00

Merge pull request #1545 from 1C-Company/G5V8DT-29011-3

G5V8DT-29011 Удалить валидацию
This commit is contained in:
Almaz Nasibullin
2026-04-08 12:58:06 +03:00
committed by Almaz Nasibullin
parent d62f15a39e
commit 9748ca1812
16 changed files with 0 additions and 1166 deletions
@@ -492,9 +492,6 @@ final class Messages
public static String VariableNameInvalidCheck_variable_name_must_start_with_a_capital_letter;
public static String VariableNameInvalidCheck_variable_name_starts_with_an_underline;
public static String StringLiteralTypeAnnotationCheck_Title;
public static String StringLiteralTypeAnnotationCheck_Incorrect_annotation_location;
static
{
// initialize resource bundle
@@ -1,212 +0,0 @@
/**
* Copyright (C) 2025, 1C
*/
package com.e1c.v8codestyle.bsl.check;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.xtext.nodemodel.ICompositeNode;
import org.eclipse.xtext.nodemodel.ILeafNode;
import org.eclipse.xtext.nodemodel.INode;
import org.eclipse.xtext.nodemodel.util.NodeModelUtils;
import org.eclipse.xtext.util.Triple;
import com._1c.g5.v8.dt.bsl.documentation.comment.BslCommentUtils;
import com._1c.g5.v8.dt.bsl.model.Conditional;
import com._1c.g5.v8.dt.bsl.model.IfStatement;
import com._1c.g5.v8.dt.bsl.model.LoopStatement;
import com._1c.g5.v8.dt.bsl.model.Module;
import com._1c.g5.v8.dt.bsl.model.PreprocessorItem;
import com._1c.g5.v8.dt.bsl.model.RegionPreprocessor;
import com._1c.g5.v8.dt.bsl.model.StringLiteral;
import com._1c.g5.v8.dt.bsl.model.TryExceptStatement;
import com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.BslBuiltInLanguagePreferences;
import com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.TypeUtil;
import com._1c.g5.v8.dt.common.StringUtils;
import com._1c.g5.v8.dt.core.platform.IV8Project;
import com._1c.g5.v8.dt.core.platform.IV8ProjectManager;
import com.e1c.g5.v8.dt.check.BslDirectLocationIssue;
import com.e1c.g5.v8.dt.check.CheckComplexity;
import com.e1c.g5.v8.dt.check.DirectLocation;
import com.e1c.g5.v8.dt.check.ICheckParameters;
import com.e1c.g5.v8.dt.check.components.BasicCheck;
import com.e1c.g5.v8.dt.check.settings.IssueSeverity;
import com.e1c.g5.v8.dt.check.settings.IssueType;
import com.e1c.v8codestyle.check.CommonSenseCheckExtension;
import com.e1c.v8codestyle.internal.bsl.BslPlugin;
import com.google.inject.Inject;
/**
* Checks the correct placement of annotations for typing string literals.
*
* @author Babin Nikolay
*
*/
public class StringLiteralTypeAnnotationCheck
extends BasicCheck<Void>
{
private static final String CHECK_ID = "string-literal-type-annotation-invalid-place"; //$NON-NLS-1$
@Inject
private IV8ProjectManager projectManager;
@Override
public String getCheckId()
{
return CHECK_ID;
}
@Override
protected void configureCheck(CheckConfigurer builder)
{
builder.title(Messages.StringLiteralTypeAnnotationCheck_Title)
.complexity(CheckComplexity.NORMAL)
.severity(IssueSeverity.MAJOR)
.issueType(IssueType.WARNING)
.extension(new CommonSenseCheckExtension(getCheckId(), BslPlugin.PLUGIN_ID))
.module();
}
@Override
protected void check(Object object, ResultAcceptor resultAceptor, ICheckParameters parameters,
IProgressMonitor monitor)
{
if (!(object instanceof Module))
return;
Module module = (Module)object;
if (!isApplyTagsToEntireExpression(module))
return;
ICompositeNode moduleNode = NodeModelUtils.findActualNodeFor(module);
List<StringLiteral> moduleStringLiterals = new ArrayList<>();
List<INode> moduleAnnotations = new ArrayList<>();
if (moduleNode != null)
{
for (ILeafNode child : moduleNode.getLeafNodes())
{
if (monitor.isCanceled())
return;
EObject semantic = NodeModelUtils.findActualSemanticObjectFor(child);
if (semantic instanceof StringLiteral literal)
{
moduleStringLiterals.add(literal);
}
if (child.isHidden() && BslCommentUtils.isCommentNode(child) && isAllowAnnotation(child.getText()))
{
moduleAnnotations.add(child);
}
}
}
List<INode> invalidAnnotations = getInvalidAnnotations(monitor, moduleStringLiterals, moduleAnnotations);
addIssues(resultAceptor, module, invalidAnnotations, monitor);
}
private void addIssues(ResultAcceptor resultAceptor, Module module, List<INode> invalidAnnotations,
IProgressMonitor monitor)
{
for (INode annotation : invalidAnnotations)
{
if (monitor.isCanceled())
return;
int index = annotation.getText().indexOf("@"); //$NON-NLS-1$
int offset = annotation.getTotalOffset() + index;
int length = annotation.getText()
.trim()
.replaceFirst(BslCommentUtils.START_COMMENT_TAG_BSL, StringUtils.EMPTY)
.trim()
.toLowerCase()
.length();
DirectLocation directLocation = new DirectLocation(offset, length, annotation.getStartLine(), module);
BslDirectLocationIssue directLocationIssue =
new BslDirectLocationIssue(
Messages.StringLiteralTypeAnnotationCheck_Incorrect_annotation_location, directLocation,
StringUtils.EMPTY);
resultAceptor.addIssue(directLocationIssue);
}
}
private List<INode> getInvalidAnnotations(IProgressMonitor monitor, List<StringLiteral> moduleStringLiterals,
List<INode> moduleAnnotations)
{
List<INode> invalidAnnotations = new ArrayList<>();
Set<INode> correctAnnotations = new HashSet<>();
for (StringLiteral literal : moduleStringLiterals)
{
if (monitor.isCanceled())
return invalidAnnotations;
EObject literalParent = findLiteralParent(literal);
if (literalParent != null)
{
List<INode> rightLines = TypeUtil.getCommentLinesFromRight(literalParent)
.stream()
.filter(node -> isAllowAnnotation(node.getText()))
.toList();
correctAnnotations.addAll(rightLines);
}
}
for (INode node : moduleAnnotations)
{
if (monitor.isCanceled())
return invalidAnnotations;
if (!correctAnnotations.contains(node))
{
invalidAnnotations.add(node);
}
}
return invalidAnnotations;
}
private boolean isApplyTagsToEntireExpression(EObject object)
{
IV8Project project = projectManager.getProject(object);
return project != null && project.getProject() != null
&& BslBuiltInLanguagePreferences.isApplyTagsToEntireExpression(project.getProject());
}
private EObject findLiteralParent(StringLiteral literal)
{
for (EObject e = literal; e != null; e = e.eContainer())
{
EObject container = e.eContainer();
//@formatter:off
if (container instanceof com._1c.g5.v8.dt.bsl.model.Method
|| container instanceof RegionPreprocessor
|| container instanceof PreprocessorItem
|| container instanceof Conditional
|| container instanceof IfStatement
|| container instanceof TryExceptStatement
|| container instanceof LoopStatement)
{
//@formatter:on
return e;
}
}
return null;
}
private boolean isAllowAnnotation(String text)
{
List<Triple<String, Integer, String>> commentAnnotations = TypeUtil.parseHeaderAnnotations(text);
return !commentAnnotations.isEmpty();
}
}
@@ -525,7 +525,3 @@ VariableNameInvalidCheck_variable_name_is_invalid = Variable name {0} is invalid
VariableNameInvalidCheck_variable_name_must_start_with_a_capital_letter = variable name must start with a capital letter
VariableNameInvalidCheck_variable_name_starts_with_an_underline = variable name starts with an underline
StringLiteralTypeAnnotationCheck_Title=The annotation is placed in the wrong location
StringLiteralTypeAnnotationCheck_Incorrect_annotation_location=Incorrect location for placing the annotation
@@ -525,7 +525,3 @@ VariableNameInvalidCheck_variable_name_is_invalid = Имя переменной
VariableNameInvalidCheck_variable_name_must_start_with_a_capital_letter = имя переменной должно начинаться с заглавной буквы
VariableNameInvalidCheck_variable_name_starts_with_an_underline = имя переменной начинается с символа подчеркивания
StringLiteralTypeAnnotationCheck_Title = Неправильное размещение аннотации строковых литералов
StringLiteralTypeAnnotationCheck_Incorrect_annotation_location=Неправильное размещение аннотации типов строковых литералов
@@ -1,70 +0,0 @@
/**
* Copyright (C) 2025, 1C
*/
package com.e1c.v8codestyle.bsl.check.itests;
import static org.junit.Assert.assertEquals;
import java.util.List;
import org.eclipse.core.runtime.Path;
import org.junit.Test;
import com._1c.g5.v8.dt.validation.marker.Marker;
import com._1c.g5.v8.dt.validation.marker.StandardExtraInfo;
import com.e1c.v8codestyle.bsl.check.StringLiteralTypeAnnotationCheck;
/**
* A class for testing {@link StringLiteralTypeAnnotationCheck}
*
* @author Babin Nikolay
*
*/
public class StringLiteralTypeAnnotationCheckTest
extends AbstractSingleModuleTestBase
{
private static final String PROJECT_NAME = "StringLiteralTypeAnnotation";
private static final String MODULE_FILE_NAME = "/src/CommonModules/CommonModule/Module.bsl";
public StringLiteralTypeAnnotationCheckTest()
{
super(StringLiteralTypeAnnotationCheck.class);
}
@Override
protected String getTestConfigurationName()
{
return PROJECT_NAME;
}
@Override
protected String getModuleFileName()
{
return MODULE_FILE_NAME;
}
@Override
protected String getModuleId()
{
return Path.ROOT.append(getTestConfigurationName()).append(MODULE_FILE_NAME).toString();
}
/**
* Checks invalid annotations locations.
*
* @throws Exception the exception
*/
@Test
public void testInvalidAnnotationsLocationsMarkers() throws Exception
{
List<Marker> markers = getModuleMarkers();
assertEquals(4, markers.size());
assertEquals(Integer.valueOf(5), markers.get(0).getExtraInfo().get(StandardExtraInfo.TEXT_LINE));
assertEquals(Integer.valueOf(10), markers.get(1).getExtraInfo().get(StandardExtraInfo.TEXT_LINE));
assertEquals(Integer.valueOf(11), markers.get(2).getExtraInfo().get(StandardExtraInfo.TEXT_LINE));
assertEquals(Integer.valueOf(13), markers.get(3).getExtraInfo().get(StandardExtraInfo.TEXT_LINE));
}
}
@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>StringLiteralTypeAnnotation</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>
@@ -1,764 +0,0 @@
{
"version": 1,
"settings": {
"md-standard-attribute-synonym-empty": {
"enabled": false
},
"graphical-scheme-legacy-check-handler-for-existance": {
"enabled": false
},
"bsl-legacy-check-label-names-are-unique": {
"enabled": false
},
"bsl-legacy-check-dynamic-feature-access-for-unknown-left-part": {
"enabled": false
},
"md-legacy-check-missing-assignments": {
"enabled": false
},
"right-configuration-extensions-administration": {
"enabled": false
},
"common-module-name-client-cached": {
"enabled": false
},
"dynamic-access-method-not-found": {
"enabled": false
},
"bsl-legacy-check-continue-statement": {
"enabled": false
},
"graphical-scheme-legacy-check-for-join-incoming-connections-count": {
"enabled": false
},
"use-goto-operator": {
"enabled": false
},
"bsl-legacy-check-break-statement": {
"enabled": false
},
"right-interactive-clear-deletion-mark-predefined-data": {
"enabled": false
},
"bsl-legacy-check-variable-names-are-unique-method": {
"enabled": false
},
"method-param-value-type": {
"enabled": false
},
"doc-comment-field-type-strict": {
"enabled": false
},
"bsl-legacy-check-form-attribute-property-assign": {
"enabled": false
},
"md-legacy-check-unique-md-object-name": {
"enabled": false
},
"method-too-many-params": {
"enabled": false
},
"md-ext-legacy-check-adopted-md-object-source-exists": {
"enabled": false
},
"doc-comment-return-section-type": {
"enabled": false
},
"right-interactive-set-deletion-mark-predefined-data": {
"enabled": false
},
"module-structure-event-regions": {
"enabled": false
},
"right-update-database-configuration": {
"enabled": false
},
"bsl-legacy-check-await-expression": {
"enabled": false
},
"module-structure-var-in-region": {
"enabled": false
},
"graphical-scheme-legacy-check-for-cycles": {
"enabled": false
},
"graphical-scheme-legacy-check-for-split-outgoing-connections-count": {
"enabled": false
},
"right-start-web-client": {
"enabled": false
},
"right-interactive-open-external-data-processors": {
"enabled": false
},
"new-color": {
"enabled": false
},
"form-item-visible-settings-by-roles": {
"enabled": false
},
"ql-constants-in-binary-operation": {
"enabled": false
},
"self-assign": {
"enabled": false
},
"data-exchange-load": {
"enabled": false
},
"common-module-type": {
"enabled": false
},
"bsl-legacy-check-async-method": {
"enabled": false
},
"module-unused-local-variable": {
"enabled": false
},
"bsl-legacy-check-dynamic-feature-access": {
"enabled": false
},
"common-module-name-cached": {
"enabled": false
},
"right-view-event-log": {
"enabled": false
},
"graphical-scheme-legacy-check-split-to-join-connections": {
"enabled": false
},
"mdo-name-length": {
"enabled": false
},
"graphical-scheme-legacy-check-for-switch-event-handler": {
"enabled": false
},
"functional-option-privileged-get-mode": {
"enabled": false
},
"documentation-comment-hub": {
"enabled": false
},
"missing-temporary-file-deletion": {
"enabled": false
},
"graphical-scheme-legacy-check-for-start-point-existence": {
"enabled": false
},
"typed-value-adding-to-untyped-collection": {
"enabled": false
},
"method-isinrole-role-exist": {
"enabled": false
},
"right-start-external-connection": {
"enabled": false
},
"doc-comment-use-minus": {
"enabled": false
},
"property-return-type": {
"enabled": false
},
"optional-form-parameter-access": {
"enabled": false
},
"graphical-scheme-legacy-check-condition-outgoing-lines": {
"enabled": false
},
"common-module-missing-api": {
"enabled": false
},
"mdo-ru-name-unallowed-letter": {
"enabled": false
},
"right-exclusive-mode": {
"enabled": false
},
"module-unused-method": {
"enabled": false
},
"graphical-scheme-legacy-check-for-path-to-completion": {
"enabled": false
},
"form-commands-single-action-handler": {
"enabled": false
},
"right-interactive-open-external-reports": {
"enabled": false
},
"bsl-legacy-check-the-same-global-element-name-for-module-variable": {
"enabled": false
},
"md-ext-legacy-check-adopted-md-object-properties-matching": {
"enabled": false
},
"configuration-data-lock-mode": {
"enabled": false
},
"bsl-legacy-check-mobile-standalone-server-availability": {
"enabled": false
},
"graphical-scheme-legacy-check-sub-bp-points": {
"enabled": false
},
"binary-data-storage-location-use-field-type": {
"enabled": false
},
"md-legacy-check-scheduled-job-method": {
"enabled": false
},
"md-object-attribute-comment-incorrect-type": {
"enabled": false
},
"form-list-ref-use-always-flag-disabled": {
"enabled": false
},
"bsl-legacy-check-library-module": {
"enabled": false
},
"subsystem-synonym-too-long": {
"enabled": false
},
"extension-md-object-prefix": {
"enabled": false
},
"graphical-scheme-legacy-check-for-several-split-outgoing-to-one-point": {
"enabled": false
},
"doc-comment-export-procedure-description-section": {
"enabled": false
},
"lock-out-of-try": {
"enabled": false
},
"db-object-ref-non-ref-type": {
"enabled": false
},
"md-legacy-check-dimension-type": {
"enabled": false
},
"structure-consructor-value-type": {
"enabled": false
},
"doc-comment-parameter-in-description-suggestion": {
"enabled": false
},
"doc-comment-complex-type-with-link": {
"enabled": false
},
"doc-comment-export-function-return-section": {
"enabled": false
},
"doc-comment-parameter-section": {
"enabled": false
},
"extension-method-prefix": {
"enabled": false
},
"bsl-legacy-check-deprecated-method": {
"enabled": false
},
"empty-except-statement": {
"enabled": false
},
"graphical-scheme-legacy-check-switch-outgoing-lines": {
"enabled": false
},
"form-module-missing-pragma": {
"enabled": false
},
"additional-indexes-check": {
"enabled": false
},
"module-structure-top-region": {
"enabled": false
},
"ql-camel-case-string-literal": {
"enabled": false
},
"db-object-max-number-length": {
"enabled": false
},
"bsl-legacy-check-return-statement": {
"enabled": false
},
"module-accessibility-at-client": {
"enabled": false
},
"doc-comment-field-type": {
"enabled": false
},
"server-execution-safe-mode": {
"enabled": false
},
"ql-join-to-sub-query": {
"enabled": false
},
"form-ql-hub": {
"enabled": false
},
"using-isinrole": {
"enabled": false
},
"md-legacy-check-type-description-types": {
"enabled": false
},
"bsl-legacy-check-expression-type": {
"enabled": false
},
"md-legacy-check-commom-picture-unique-name": {
"enabled": false
},
"module-attachable-event-handler-name": {
"enabled": false
},
"md-legacy-check-sequence-dimension": {
"enabled": false
},
"invocation-form-event-handler": {
"enabled": false
},
"right-start-automation": {
"enabled": false
},
"md-legacy-check-name-in-data-source-field": {
"enabled": false
},
"common-module-name-client": {
"enabled": false
},
"bsl-legacy-check-date-literal": {
"enabled": false
},
"md-legacy-check-name-in-data-source-dimensiontable": {
"enabled": false
},
"bsl-legacy-validate-order-of-module-part": {
"enabled": false
},
"md-legacy-check-style-item-uniq-name": {
"enabled": false
},
"bsl-legacy-check-raise-statement": {
"enabled": false
},
"graphical-scheme-legacy-check-for-point-connection-to-completion": {
"enabled": false
},
"line-number-length": {
"enabled": false
},
"form-module-pragma": {
"enabled": false
},
"variable-value-type": {
"enabled": false
},
"common-module-name-global-client": {
"enabled": false
},
"right-start-thin-client": {
"enabled": false
},
"graphical-scheme-legacy-check-for-addressing-attributes-values-existance": {
"enabled": false
},
"query-in-loop": {
"enabled": false
},
"structure-consructor-too-many-keys": {
"enabled": false
},
"form-list-field-ref-not-added": {
"enabled": false
},
"module-self-reference": {
"enabled": false
},
"dcs-ql-hub": {
"enabled": false
},
"right-save-user-data": {
"enabled": false
},
"deprecated-procedure-outside-deprecated-region": {
"enabled": false
},
"right-administration": {
"enabled": false
},
"use-non-recommended-method": {
"enabled": false
},
"module-region-empty": {
"enabled": false
},
"mdo-scheduled-job-description": {
"enabled": false
},
"bsl-legacy-check-type-environments": {
"enabled": false
},
"new-font": {
"enabled": false
},
"using-form-data-to-value": {
"enabled": false
},
"bsl-legacy-check-is-appropriate-ctor": {
"enabled": false
},
"module-empty-method": {
"enabled": false
},
"bsl-legacy-check-region-preprocessor": {
"enabled": false
},
"right-data-administration": {
"enabled": false
},
"change-and-validate-instead-of-around": {
"enabled": false
},
"bsl-legacy-check-static-feature-access-for-unknown-left-part": {
"enabled": false
},
"form-legacy-check-event-handler": {
"enabled": false
},
"constructor-function-return-section": {
"enabled": false
},
"bsl-legacy-check-pragma-for-unused-method": {
"enabled": false
},
"bsl-legacy-check-string-literal": {
"enabled": false
},
"bsl-legacy-check-for-each-statetement-collection": {
"enabled": false
},
"role-right-has-rls": {
"enabled": false
},
"md-legacy-check-name-in-data-source-cube": {
"enabled": false
},
"scheduled-job-periodicity-too-short": {
"enabled": false
},
"doc-comment-ref-link": {
"enabled": false
},
"md-legacy-check-table": {
"enabled": false
},
"reference-value-resolving": {
"enabled": false
},
"right-start-thick-client": {
"enabled": false
},
"bsl-legacy-check-simple-statement": {
"enabled": false
},
"bsl-legacy-check-variable-names-are-unique-module": {
"enabled": false
},
"md-ext-legacy-check-common-module": {
"enabled": false
},
"object-module-export-variable": {
"enabled": false
},
"md-ext-legacy-check-configuration": {
"enabled": false
},
"reference-value-resolving-non-critical": {
"enabled": false
},
"bsl-variable-name-invalid": {
"enabled": false
},
"md-legacy-check-choice-parameter-link": {
"enabled": false
},
"doc-comment-collection-item-type": {
"enabled": false
},
"right-delete": {
"enabled": false
},
"extension-variable-prefix": {
"enabled": false
},
"common-module-name-global": {
"enabled": false
},
"notify-description-to-server-procedure": {
"enabled": false
},
"xdto-package-extension-package-namespace-features-state": {
"enabled": false
},
"md-legacy-check-name-in-data-source-table": {
"enabled": false
},
"right-interactive-delete-predefined-data": {
"enabled": false
},
"module-structure-init-code-in-region": {
"enabled": false
},
"form-legacy-check-command-handler": {
"enabled": false
},
"right-interactive-delete-marked-predefined-data": {
"enabled": false
},
"graphical-scheme-legacy-check-for-line-target-existence": {
"enabled": false
},
"bsl-legacy-check-module-extension": {
"enabled": false
},
"bsl-legacy-check-method-names-are-unique": {
"enabled": false
},
"bsl-legacy-check-returning-type-for-environment": {
"enabled": false
},
"unsafe-password-ib-storage": {
"enabled": false
},
"bsl-legacy-validate-order-of-method-part": {
"enabled": false
},
"bsl-legacy-check-event-handler-statement": {
"enabled": false
},
"manager-module-named-self-reference": {
"enabled": false
},
"graphical-scheme-legacy-check-incoming-to-join-connections": {
"enabled": false
},
"common-module-name-client-server": {
"enabled": false
},
"export-procedure-missing-comment": {
"enabled": false
},
"doc-comment-procedure-return-section": {
"enabled": false
},
"public-method-caching": {
"enabled": false
},
"bsl-canonical-pragma": {
"enabled": false
},
"bsl-legacy-check-for-empty-method-environments": {
"enabled": false
},
"md-legacy-check-commom-module-name": {
"enabled": false
},
"ql-temp-table-index": {
"enabled": false
},
"bsl-legacy-check-execute-statement": {
"enabled": false
},
"bsl-legacy-check-pragma": {
"enabled": false
},
"doc-comment-redundant-parameter-section": {
"enabled": false
},
"string-literal-type-annotation-invalid-place": {
"severity": "CRITICAL"
},
"bsl-legacy-check-goto-statement": {
"enabled": false
},
"right-interactive-delete": {
"enabled": false
},
"event-heandler-boolean-param": {
"enabled": false
},
"graphical-scheme-legacy-check-for-point-incoming-line-existence": {
"enabled": false
},
"ql-like-expression-with-field": {
"enabled": false
},
"input-field-list-choice-mode": {
"enabled": false
},
"form-legacy-check-type-description-types": {
"enabled": false
},
"bsl-legacy-check-local-variables-not-exported": {
"enabled": false
},
"form-self-reference": {
"enabled": false
},
"form-legacy-emf-check": {
"enabled": false
},
"doc-comment-field-name": {
"enabled": false
},
"doc-comment-field-in-description-suggestion": {
"enabled": false
},
"not-support-goto-operator-webclient": {
"enabled": false
},
"right-active-users": {
"enabled": false
},
"md-legacy-emf-check": {
"enabled": false
},
"md-legacy-check-subsystem": {
"enabled": false
},
"data-composition-conditional-appearance-use": {
"enabled": false
},
"right-output-to-printer-file-clipboard": {
"enabled": false
},
"md-legacy-check-ws-reference": {
"enabled": false
},
"right-all-functions-mode": {
"enabled": false
},
"register-resource-precision": {
"enabled": false
},
"bsl-legacy-check-static-feature-access": {
"enabled": false
},
"graphical-scheme-legacy-check-for-condition-event-handler": {
"enabled": false
},
"common-module-name-server-call": {
"enabled": false
},
"bsl-legacy-check-type-in-operator-new": {
"enabled": false
},
"common-module-named-self-reference": {
"enabled": false
},
"module-structure-method-in-regions": {
"enabled": false
},
"ql-virtual-table-filters": {
"enabled": false
},
"bsl-legacy-check-number-literal-expression": {
"enabled": false
},
"common-module-name-server-call-cached": {
"enabled": false
},
"doc-comment-type": {
"enabled": false
},
"method-optional-parameter-before-required": {
"enabled": false
},
"md-legacy-check-name-in-data-source-resource": {
"enabled": false
},
"form-dynamic-list-item-title": {
"enabled": false
},
"reading-attribute-from-database": {
"enabled": false
},
"bsl-legacy-check-method-annotations": {
"enabled": false
},
"bsl-nstr-string-literal-format": {
"enabled": false
},
"bsl-legacy-check-if-preprocessor-part-environments": {
"enabled": false
},
"ql-cast-to-max-number": {
"enabled": false
},
"bsl-legacy-check-preprocessors-lines": {
"enabled": false
},
"function-return-value-type": {
"enabled": false
},
"common-module-name-full-access": {
"enabled": false
},
"structure-key-modification": {
"enabled": false
},
"unknown-form-parameter-access": {
"enabled": false
},
"invocation-parameter-type-intersect": {
"enabled": false
},
"md-object-attribute-comment-not-exist": {
"enabled": false
},
"md-legacy-check-event-subscription-handler": {
"enabled": false
},
"graphical-scheme-legacy-check-switch-item": {
"enabled": false
},
"ql-using-for-update": {
"enabled": false
},
"export-method-in-command-form-module": {
"enabled": false
},
"db-object-anyref-type": {
"enabled": false
},
"md-list-object-presentation": {
"enabled": false
},
"form-list-ref-user-visibility-enabled": {
"enabled": false
},
"bsl-legacy-check-method-for-statements-after-return": {
"enabled": false
},
"module-structure-form-event-regions": {
"enabled": false
},
"form-items-single-event-handler": {
"enabled": false
},
"md-ext-legacy-check-extended-configuration-object": {
"enabled": false
},
"document-post-in-privileged-mode": {
"enabled": false
},
"configuration-standalone-content": {
"enabled": false
},
"statement-type-change": {
"enabled": false
}
}
}
@@ -1,2 +0,0 @@
applyTagsToEntireExpression=true
eclipse.preferences.version=1
@@ -1,4 +0,0 @@
defaultValuesInitialized=true
eclipse.preferences.version=1
projectSpecificSettingsInited=true
showWhitespaceCharacters=false
@@ -1,2 +0,0 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
@@ -1,2 +0,0 @@
Manifest-Version: 1.0
Runtime-Version: 8.3.19
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<mdclass:CommonModule xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="cb364877-7f3a-44d9-8bc3-70387044034b">
<name>CommonModule</name>
<synonym>
<key>en</key>
<value>Common module</value>
</synonym>
<server>true</server>
<externalConnection>true</externalConnection>
<clientOrdinaryApplication>true</clientOrdinaryApplication>
</mdclass:CommonModule>
@@ -1,24 +0,0 @@
Процедура НоваяПроцедура(ЯвляетсяЗаявкойНаОплату, ИмяСвойства, ЗначенияСвойства, ОбъектXDTO)
Если ЯвляетсяЗаявкойНаОплату И ИмяСвойства = "recipient" //@non-nls
Тогда // @fqn
ЗначенияСвойства.Добавить(ОбъектXDTO, "Получатель"); // @nOn-nls
ИначеЕсли ТипЗнч(ОбъектXDTO[ИмяСвойства]) = Тип("СписокXDTO")
Тогда // @noN-nls-1
Для //@form
Каждого ЭлементСпискаXDTO
//@non-nls
Из ОбъектXDTO[ИмяСвойства] Цикл
ЗначенияСвойства.Добавить("ыва"); //@non-Nls
ЗначенияСвойства.Добавить("Литерал"); //@non-nLs
КонецЦикла;
Иначе
ЗначенияСвойства.Добавить(ОбъектXDTO[ИмяСвойства]);
КонецЕсли;
КонецПроцедуры
@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<cmi:CommandInterface xmlns:cmi="http://g5.1c.ru/v8/dt/cmi"/>
@@ -1,42 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<mdclass:Configuration xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="41e0d07d-ece6-42b2-bfbf-686d364ed4fd">
<name>StringLiteralTypeAnnotation</name>
<synonym>
<key>en</key>
<value>Common module</value>
</synonym>
<containedObjects classId="9cd510cd-abfc-11d4-9434-004095e12fc7" objectId="6c1e7aa2-b0dc-40a6-9666-92dc3ee3eee8"/>
<containedObjects classId="9fcd25a0-4822-11d4-9414-008048da11f9" objectId="23a1191a-d0c7-4384-92b6-1c0af1530860"/>
<containedObjects classId="e3687481-0a87-462c-a166-9f34594f9bba" objectId="2e16e60c-a924-457f-806e-e24b71ccd04b"/>
<containedObjects classId="9de14907-ec23-4a07-96f0-85521cb6b53b" objectId="5c2b531d-3b51-4e77-99c5-1b3a36046623"/>
<containedObjects classId="51f2d5d8-ea4d-4064-8892-82951750031e" objectId="0b85a612-279e-4922-8f22-838ada8729f6"/>
<containedObjects classId="e68182ea-4237-4383-967f-90c1e3370bc7" objectId="1a856b15-b18e-43c7-8608-d37f533898a6"/>
<containedObjects classId="fb282519-d103-4dd3-bc12-cb271d631dfc" objectId="16633a11-1ecd-48ba-ab9b-fe39c9b63e9e"/>
<configurationExtensionCompatibilityMode>8.3.19</configurationExtensionCompatibilityMode>
<defaultRunMode>ManagedApplication</defaultRunMode>
<usePurposes>PersonalComputer</usePurposes>
<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="6d6f56cc-2157-41a6-aa5c-a2ca5b24e90c">
<name>English</name>
<synonym>
<key>en</key>
<value>English</value>
</synonym>
<languageCode>en</languageCode>
</languages>
<commonModules>CommonModule.CommonModule</commonModules>
</mdclass:Configuration>
@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<cmi:CommandInterface xmlns:cmi="http://g5.1c.ru/v8/dt/cmi"/>