mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-01-06 00:33:23 +02:00
Добавлен ифльтр по типу модуля
This commit is contained in:
parent
1ec3a3d73f
commit
b9555ad09f
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user