diff --git a/bundles/com.e1c.v8codestyle.form/META-INF/MANIFEST.MF b/bundles/com.e1c.v8codestyle.form/META-INF/MANIFEST.MF index 980618b9..0bac6c3b 100644 --- a/bundles/com.e1c.v8codestyle.form/META-INF/MANIFEST.MF +++ b/bundles/com.e1c.v8codestyle.form/META-INF/MANIFEST.MF @@ -24,6 +24,7 @@ Import-Package: com._1c.g5.v8.bm.core;version="[7.5.0,8.0.0)", com._1c.g5.wiring.binder;version="[1.1.0,2.0.0)", com.e1c.g5.v8.dt.check;version="[2.0.0,3.0.0)", com.e1c.g5.v8.dt.check.components;version="[2.0.0,3.0.0)", + com.e1c.g5.v8.dt.check.ext;version="[1.0.0,2.0.0)", com.e1c.g5.v8.dt.check.settings;version="[3.0.0,4.0.0)", com.e1c.v8codestyle.check;version="[0.3.0,0.4.0)", com.google.common.base;version="[30.1.0,31.0.0)", diff --git a/bundles/com.e1c.v8codestyle.form/plugin.xml b/bundles/com.e1c.v8codestyle.form/plugin.xml index e8d9e0c8..a06927be 100644 --- a/bundles/com.e1c.v8codestyle.form/plugin.xml +++ b/bundles/com.e1c.v8codestyle.form/plugin.xml @@ -28,7 +28,7 @@ + class="com.e1c.v8codestyle.internal.form.ExecutableExtensionFactory:com.e1c.v8codestyle.form.check.FormListRefUseAlwaysFlagDisabledCheck"> !isBaseForm((Form)object); + } + + private static boolean isBaseForm(Form form) + { + return form != null && form.getMdForm().getObjectBelonging() == ObjectBelonging.ADOPTED + && form.getExtensionForm() != null && !form.getExtensionForm().eIsProxy() + && (form.getBaseForm() == null || form.getBaseForm().eIsProxy()); + } +}