1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2025-01-20 21:18:18 +02:00

Merge pull request #1112 from 1C-Company/fix-filter-event-regions

Добавлен ифльтр по типу модуля
This commit is contained in:
Dmitriy Marmyshev 2022-08-10 09:42:27 +03:00 committed by GitHub
commit ab5a60360c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<RegionPreprocessor> region = getTopParentRegion(method);
if (region.isEmpty())