From b9555ad09fcfc6eb61808dd8758f5eb9313600dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8E=D1=85=D0=B8=D0=BD=20=D0=90=D1=80=D1=82?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=92=D0=B0=D1=81=D0=B8=D0=BB=D1=8C=D0=B5=D0=B2?= =?UTF-8?q?=D0=B8=D1=87?= Date: Wed, 10 Aug 2022 04:11:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B8=D1=84=D0=BB=D1=8C=D1=82=D1=80=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D1=82=D0=B8=D0=BF=D1=83=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bsl/check/ModuleStructureEventRegionsCheck.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/ModuleStructureEventRegionsCheck.java b/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/ModuleStructureEventRegionsCheck.java index a6079197..3d1fba34 100644 --- a/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/ModuleStructureEventRegionsCheck.java +++ b/bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/ModuleStructureEventRegionsCheck.java @@ -72,6 +72,7 @@ public class ModuleStructureEventRegionsCheck .issueType(IssueType.CODE_STYLE) .extension(new ModuleTopObjectNameFilterExtension()) .extension(new StandardCheckExtension(getCheckId(), BslPlugin.PLUGIN_ID)) + .extension(ModuleTypeFilter.excludeTypes(ModuleType.FORM_MODULE)) .module() .checkedObjectType(METHOD); } @@ -87,10 +88,6 @@ public class ModuleStructureEventRegionsCheck ScriptVariant scriptVariant = project.getScriptVariant(); ModuleType moduleType = getModuleType(method); - if (ModuleType.FORM_MODULE.equals(moduleType)) - { - return; - } Optional region = getTopParentRegion(method); if (region.isEmpty())