diff --git a/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/Messages.java b/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/Messages.java index b0e95eaf..58a55326 100644 --- a/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/Messages.java +++ b/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/Messages.java @@ -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 diff --git a/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/StringLiteralTypeAnnotationCheck.java b/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/StringLiteralTypeAnnotationCheck.java deleted file mode 100644 index 0a702507..00000000 --- a/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/StringLiteralTypeAnnotationCheck.java +++ /dev/null @@ -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 -{ - 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 moduleStringLiterals = new ArrayList<>(); - List 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 invalidAnnotations = getInvalidAnnotations(monitor, moduleStringLiterals, moduleAnnotations); - - addIssues(resultAceptor, module, invalidAnnotations, monitor); - } - - private void addIssues(ResultAcceptor resultAceptor, Module module, List 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 getInvalidAnnotations(IProgressMonitor monitor, List moduleStringLiterals, - List moduleAnnotations) - { - List invalidAnnotations = new ArrayList<>(); - - Set correctAnnotations = new HashSet<>(); - for (StringLiteral literal : moduleStringLiterals) - { - if (monitor.isCanceled()) - return invalidAnnotations; - - EObject literalParent = findLiteralParent(literal); - - if (literalParent != null) - { - List 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> commentAnnotations = TypeUtil.parseHeaderAnnotations(text); - return !commentAnnotations.isEmpty(); - } -} diff --git a/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/messages.properties b/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/messages.properties index d16924a5..5eed53c9 100644 --- a/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/messages.properties +++ b/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/messages.properties @@ -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 diff --git a/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/messages_ru.properties b/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/messages_ru.properties index e6be51ab..85c03651 100644 --- a/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/messages_ru.properties +++ b/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/messages_ru.properties @@ -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=Неправильное размещение аннотации типов строковых литералов diff --git a/tests/com.e1c.v8codestyle.bsl.itests/src/com/e1c/v8codestyle/bsl/check/itests/StringLiteralTypeAnnotationCheckTest.java b/tests/com.e1c.v8codestyle.bsl.itests/src/com/e1c/v8codestyle/bsl/check/itests/StringLiteralTypeAnnotationCheckTest.java deleted file mode 100644 index 5b9d4a4a..00000000 --- a/tests/com.e1c.v8codestyle.bsl.itests/src/com/e1c/v8codestyle/bsl/check/itests/StringLiteralTypeAnnotationCheckTest.java +++ /dev/null @@ -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 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)); - } -} diff --git a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.project b/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.project deleted file mode 100644 index 92b12152..00000000 --- a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.project +++ /dev/null @@ -1,18 +0,0 @@ - - - StringLiteralTypeAnnotation - - - - - - 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.bsl.itests/workspace/StringLiteralTypeAnnotation/.settings/Default.cset b/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.settings/Default.cset deleted file mode 100644 index 2ed4a8f1..00000000 --- a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.settings/Default.cset +++ /dev/null @@ -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 - } - } -} \ No newline at end of file diff --git a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.settings/com._1c.g5.v8.dt.bsl.prefs b/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.settings/com._1c.g5.v8.dt.bsl.prefs deleted file mode 100644 index 884d637e..00000000 --- a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.settings/com._1c.g5.v8.dt.bsl.prefs +++ /dev/null @@ -1,2 +0,0 @@ -applyTagsToEntireExpression=true -eclipse.preferences.version=1 diff --git a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.settings/com.e1c.g5.v8.dt.formatter.bsl.prefs b/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.settings/com.e1c.g5.v8.dt.formatter.bsl.prefs deleted file mode 100644 index b6c2087d..00000000 --- a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.settings/com.e1c.g5.v8.dt.formatter.bsl.prefs +++ /dev/null @@ -1,4 +0,0 @@ -defaultValuesInitialized=true -eclipse.preferences.version=1 -projectSpecificSettingsInited=true -showWhitespaceCharacters=false diff --git a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.settings/org.eclipse.core.resources.prefs b/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c02..00000000 --- a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/DT-INF/PROJECT.PMF b/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/DT-INF/PROJECT.PMF deleted file mode 100644 index 6835f1cd..00000000 --- a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/DT-INF/PROJECT.PMF +++ /dev/null @@ -1,2 +0,0 @@ -Manifest-Version: 1.0 -Runtime-Version: 8.3.19 diff --git a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/CommonModules/CommonModule/CommonModule.mdo b/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/CommonModules/CommonModule/CommonModule.mdo deleted file mode 100644 index ba88d8a9..00000000 --- a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/CommonModules/CommonModule/CommonModule.mdo +++ /dev/null @@ -1,11 +0,0 @@ - - - CommonModule - - en - Common module - - true - true - true - diff --git a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/CommonModules/CommonModule/Module.bsl b/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/CommonModules/CommonModule/Module.bsl deleted file mode 100644 index 02995606..00000000 --- a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/CommonModules/CommonModule/Module.bsl +++ /dev/null @@ -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[ИмяСвойства]); - КонецЕсли; - -КонецПроцедуры diff --git a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/Configuration/CommandInterface.cmi b/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/Configuration/CommandInterface.cmi deleted file mode 100644 index 0cf6de8a..00000000 --- a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/Configuration/CommandInterface.cmi +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/Configuration/Configuration.mdo b/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/Configuration/Configuration.mdo deleted file mode 100644 index 41064dd3..00000000 --- a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/Configuration/Configuration.mdo +++ /dev/null @@ -1,42 +0,0 @@ - - - StringLiteralTypeAnnotation - - en - Common module - - - - - - - - - 8.3.19 - ManagedApplication - PersonalComputer - - - true - - - OSBackup - true - - - Language.English - Managed - NotAutoFree - DontUse - DontUse - 8.3.19 - - English - - en - English - - en - - CommonModule.CommonModule - diff --git a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/Configuration/MainSectionCommandInterface.cmi b/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/Configuration/MainSectionCommandInterface.cmi deleted file mode 100644 index 0cf6de8a..00000000 --- a/tests/com.e1c.v8codestyle.bsl.itests/workspace/StringLiteralTypeAnnotation/src/Configuration/MainSectionCommandInterface.cmi +++ /dev/null @@ -1,2 +0,0 @@ - -